Resolve player names exactly in commands

This commit is contained in:
2026-09-26 22:46:45 -07:00
parent 81b34862b4
commit c127e45f8d
5 changed files with 31 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ public class MetropolisHomeEvictCommand implements CommandExecutor {
playerName = args[0];
}
OfflinePlayer player = _plugin.getServer().getOfflinePlayer(playerName);
OfflinePlayer player = _plugin.getOfflinePlayer(playerName);
if(player == null){
sender.sendMessage(String.format("The requested player {%s}does not appear to exist.", playerName));
return false;