From 3432ee54441a78e9221bd27cc761dbc68a00e9af Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sun, 2 Feb 2020 01:09:08 +0100 Subject: [PATCH] bugfixes --- src/de/steamwar/lobby/commands/ShieldCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/lobby/commands/ShieldCommand.java b/src/de/steamwar/lobby/commands/ShieldCommand.java index fc3e9f3..a8a54af 100644 --- a/src/de/steamwar/lobby/commands/ShieldCommand.java +++ b/src/de/steamwar/lobby/commands/ShieldCommand.java @@ -1,5 +1,6 @@ package de.steamwar.lobby.commands; +import de.steamwar.lobby.inventorys.LobbyInventory; import de.steamwar.lobby.utils.LobbyPlayer; import de.steamwar.sql.SteamwarUser; import de.steamwar.sql.UserGroup; @@ -32,7 +33,7 @@ public class ShieldCommand implements CommandExecutor { lobbyPlayer.setShield(newShieldState); player.sendMessage("§7Dein Schild ist jetzt " + (newShieldState ? "§aan" : "§caus") + "§7."); - LobbyPlayer.getLobbyPlayer(player.getUniqueId()); + LobbyInventory.givePlayerLobbyItems(player); return false; } }