mirror of
https://github.com/kaboomserver/extras.git
synced 2025-07-22 21:43:48 +00:00
Make username check stricter
This commit is contained in:
parent
6c375f0cb5
commit
9e0cc8c034
3 changed files with 29 additions and 20 deletions
|
@ -54,7 +54,7 @@ public final class CommandUsername implements CommandExecutor {
|
|||
}
|
||||
|
||||
for (Player other : Bukkit.getOnlinePlayers()) {
|
||||
if (!other.getName().equals(name)) continue;
|
||||
if (!other.getName().equalsIgnoreCase(name)) continue;
|
||||
|
||||
player.sendMessage(Component
|
||||
.text("A player with that username is already logged in."));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue