mirror of
https://github.com/songoda/UltimateModeration.git
synced 2024-11-23 02:35:27 +01:00
fix
This commit is contained in:
parent
445ae829c8
commit
ec07183495
@ -65,6 +65,13 @@ public class CommandSpy extends AbstractCommand {
|
||||
return ReturnType.SUCCESS;
|
||||
}
|
||||
|
||||
Player player = Bukkit.getPlayer(args[0]);
|
||||
|
||||
if (player == null) {
|
||||
sender.sendMessage(instance.getReferences().getPrefix() + "That player does not exist or is not online.");
|
||||
return ReturnType.FAILURE;
|
||||
}
|
||||
|
||||
spy(player, senderP);
|
||||
|
||||
return ReturnType.SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user