mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 18:24:43 +02:00
Fixed a NPE when trying to ptp to a non-existing player
This commit is contained in:
@ -84,7 +84,7 @@ public class PtpCommand implements CommandExecutor {
|
||||
protected static boolean canTeleport(CommandSender sender, Player player, String targetName) {
|
||||
mcMMOTarget = UserManager.getPlayer(targetName);
|
||||
|
||||
if (CommandUtils.checkPlayerExistence(sender, targetName, mcMMOTarget)) {
|
||||
if (!CommandUtils.checkPlayerExistence(sender, targetName, mcMMOTarget)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user