From 284542e23d188ebc31ad4affdda948ec1af455df Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sat, 23 Nov 2019 20:55:28 +0100 Subject: [PATCH] hotfix --- .../src/de/steamwar/fightsystem/commands/LockschemCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/commands/LockschemCommand.java b/FightSystem_Main/src/de/steamwar/fightsystem/commands/LockschemCommand.java index a28d0c9..ed08e02 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/commands/LockschemCommand.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/commands/LockschemCommand.java @@ -14,10 +14,11 @@ import org.bukkit.entity.Player; public class LockschemCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { - Player player = (Player) sender; if(!(sender instanceof Player)) { return false; } + Player player = (Player) sender; + SteamwarUser steamwarUser = SteamwarUser.get(player.getUniqueId()); UserGroup userGroup = steamwarUser.getUserGroup();