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

@@ -24,7 +24,7 @@ public class MetropolisHomeGoCommand implements CommandExecutor {
if(args.length >= 1){
if(player.hasPermission("")){
player = _plugin.getServer().getPlayer(args[0]);
player = _plugin.getPlayer(args[0]);
if(player == null){
sender.sendMessage(String.format("Unable to find player %s", args[0]));
@@ -37,7 +37,7 @@ public class MetropolisHomeGoCommand implements CommandExecutor {
}
}else{
if(args.length >= 1){
player = _plugin.getServer().getPlayer(args[0]);
player = _plugin.getPlayer(args[0]);
if(player == null){
sender.sendMessage(String.format("Unable to find player %s", args[0]));