mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Fix NPE in /kill when used from console. Thanks Necrodoom
This commit is contained in:
parent
92a2244650
commit
b8cdd7d1f7
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ public class Commandkill extends EssentialsCommand
|
|||
final List<Player> matchedPlayers = server.matchPlayer(args[0]);
|
||||
for (Player matchPlayer : matchedPlayers)
|
||||
{
|
||||
if (ess.getUser(matchPlayer).isAuthorized("essentials.kill.exempt") && !ess.getUser(sender).isAuthorized("essentials.kill.force"))
|
||||
if (sender instanceof Player && ess.getUser(matchPlayer).isAuthorized("essentials.kill.exempt") && !ess.getUser(sender).isAuthorized("essentials.kill.force"))
|
||||
{
|
||||
throw new Exception(_("killExempt", matchPlayer.getDisplayName()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue