Make username check stricter

This commit is contained in:
Allink 2023-04-08 18:02:45 +01:00
parent 6c375f0cb5
commit 9e0cc8c034
No known key found for this signature in database
3 changed files with 29 additions and 20 deletions

View file

@ -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."));