AdvancedBan icon indicating copy to clipboard operation
AdvancedBan copied to clipboard

Problems Referring to Users with Similar Names - Likely caused by using Server.getPlayer

Open A248 opened this issue 4 years ago • 0 comments

What version of AdvancedBan (/AdvancedBan) are you using? 2.3.0

What kind of server do you have (Bungeecord/single server)? Single server

What server version (/version) are you using? Spigot 1.8.9

Please provide the EXACT steps required to reproduce the problem...

  1. Ban the user 'dawpo'
  2. Have the user 'dawpowo' join the server
  3. Run /unban dawpo
  4. Response is "dawpowo is not banned"

Any error/log post it through pastebin.com and link it here. (Also include /plugins/AdvancedBan/logs/latest.log) n/a

Add any additional information below. Reported by user harrison on the discord

I suspect the issue is caused by using Server.getPlayer instead of getPlayerExact. For some odd reason, the Bukkit developers thought it was a good idea to include non-simple name matching in getPlayer. getPlayerExact, instead, will only return exact matches (the correct behavior).

A248 avatar Feb 15 '21 18:02 A248