geforkt von Mirrors/Paper
[Bleeding] Check for player validity in spawnpoint command. Fixes BUKKIT-2742
By: mbax <github@phozop.net>
Dieser Commit ist enthalten in:
Ursprung
5a1309d875
Commit
e20c3d1e55
@ -36,6 +36,10 @@ public class SpawnpointCommand extends VanillaCommand {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
player = Bukkit.getPlayerExact(args[0]);
|
player = Bukkit.getPlayerExact(args[0]);
|
||||||
|
if (player == null) {
|
||||||
|
sender.sendMessage("Can't find user " + args[0]);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren