Minecrell / ServerListPlus

A flexible Minecraft plugin to customize the appearance of your server in the server list
https://git.io/slp
GNU General Public License v3.0
240 stars 58 forks source link

Advancedban not working #342

Open JohnB17 opened 3 years ago

JohnB17 commented 3 years ago

I banned my alt with Advancedban, but it still showed the normal motd. Here is my ServerListPlus.yml

#      _____                     __    _     _   _____ _
#     |   __|___ ___ _ _ ___ ___|  |  |_|___| |_|  _  | |_ _ ___
#     |__   | -_|  _| | | -_|  _|  |__| |_ -|  _|   __| | | |_ -|
#     |_____|___|_|  \_/|___|_| |_____|_|___|_| |__|  |_|___|___|
# 
# ServerListPlus v3.4.8 - http://git.io/slp

# More information is available in the Wiki: http://git.io/slp-wiki

# This is the section where you can customize your server status ping!
#  - Default is the section for the status used when the player name is unknown.
#    Personalized is used if the client has already joined the server once.
#    Use %player% as placeholder for the player's name.
# 
# Features:
#  - Description (MotD): A short status message for your server, max. 2 lines.
#  - Players:
#    - Hover: The player hover message that is displayed if you hover the player count.
#    - Slots: Custom player slot formatting, see http://git.io/slp-slots
#  - Favicon:
#    - Use multiple server icons or the player's head as favicon, see http://git.io/oMhJlg
#    - Possible favicon sources: Files, Folders, URLs, Heads, Helms, Encoded
# 
#  More features are explained in the Wiki: http://git.io/slp-config
# 
# Usage:
#  - Add multiple entries for random messages.
#  - Save the file with valid UTF-8 encoding for special characters.
#  - Available placeholders:
#    - Player name: %player%
#    - Player count: %online%, %max%, %online@server% %online@world%
#    - Random online player name: %random_player%
--- !Status
Default:
  Description:
  - |-
    &a[REDACTED] Minecraft Network.
    &7Now with [&a&lPvP&7], [&a&lMinigames&7], and much more!
  - |-
    &a[REDACTED] Minecraft Network.
    &eWe have updated our server to &lMinecraft 1.8&e!
  Favicon:
    Files:
    - favicon.png
  Players:
    Hover:
    - |-
      &aWelcome to &l[REDACTED] Minecraft Network&a!

        - &aLobby: &e%online@lobby%/20 players online
        - &aMinigames: &e%online@minigames%/20 players online
        - &a[REDACTED] SMP: &e%online@[REDACTED]smp%/20 players online

      &aThere is a total of %online%/20  ...
Banned:
  Description:
  - |-
    &a[REDACTED] Minecraft Network.
    Seems you're banned! Goodbye
  - |-
    &a[REDACTED] Minecraft Network.
    Nope. You can't come in.
#  Description:
#  - |-
#    &aA Minecraft Network. &7|  &eHello, &l%player%!
#    &7Now with [&a&lPvP&7], [&a&lMinigames&7], and much more!
#  - |-
#    &aA Minecraft Network. &7|  &eHello, &l%player%!
#    &eWe have updated our server to &lMinecraft 1.8&e!
#  Players:
#    Hover:
#    - |-
#      &aWelcome back, &l%player%&a!
#      &aCurrently &e&l%online% &aplayers are playing on our server!

# Stats: Enable/disable sending plugin statistics.
# PlayerTracking: Enable/disable tracking of player names to their IP-Addresses.
#   - Persistence can be disabled with the toggle in the Storage section.
# Samples: Toggle using multiple player infos for the player hover message.
#     May prevent the annoying ... and x more ... message for bigger servers
#     DynamicPlayers is special and aligns the number with the number of
#     random players used in placeholders.
# Unknown: Placeholder replacement if the real value is unknown.
# Favicon: Options for the creation / downloading of favicons:
#  - RecursiveFolderSearch: Also search for favicons in sub directories.
#  - SkinSource: The URL to get the Minecraft Skins from. (%s -> player name)
#  - ResizeStrategy: The strategy used to resize too small or too big favicons.
#      NONE (keep them as is, will probably fail), SCALE (scale them to the correct size)
--- !Plugin
Stats: true
PlayerTracking:
  Enabled: true
  Storage: !JSONStorage
    Enabled: true
    SaveDelay: 5m
Samples:
  Multiple: true
  DynamicPlayers: false
Unknown:
  PlayerName: player
  PlayerCount: ???
  Date: ???
Favicon:
  Timeout: 10s
  RecursiveFolderSearch: false
  ResizeStrategy: SCALE
BrainStone commented 3 years ago

Does it show the personalized message for your alt?

JohnB17 commented 3 years ago

When they get banned, they get the personalize kick screen, but serverlistplus still shows "We have updated our server to Minecraft 1.8!" in the motd area in minecraft.

BrainStone commented 3 years ago

I mean the server list message.

JohnB17 commented 3 years ago

It shows the normal one, not the one setup for banned players.

stephan-gh commented 3 years ago

@JohnB17 I think what @BrainStone is trying to figure out is if the player detection is working. You can try adding the %player% placeholder in the default motd/description and see if it shows the name of the banned player (as opposed to the banned motd).

JohnB17 commented 2 years ago

It was because the firewall I was using proxied all connections through it, so all the IPs showed up as 127.0.0.1 thats why it didn't work.

JohnB17 commented 2 years ago

Reopening because I am having the issue again on my new server, (it doesn't work on any of my virtual hosts either) here is my config https://pastebin.com/PmNG2ANP I am still using AdvancedBan, it and ServerListPlus are both on the proxy. The public IPs are correct, but it still shows the default MOTD and hover.