SteamWar/FightSystem
Archiviert
13
1

HotbarGUI hotfix

Dieser Commit ist enthalten in:
Lixfel 2019-11-16 15:01:27 +01:00
Ursprung 595e7a0ea4
Commit 7f8f1490ab

Datei anzeigen

@ -15,13 +15,13 @@ public class HotbarGUIListener extends BasicListener {
@EventHandler
public void handlePlayerInteract(PlayerInteractEvent event) {
Player player = event.getPlayer();
event.setCancelled(true);
if(event.getItem() != null) {
FightTeam fightTeam = Fight.getPlayerTeam(player);
if(fightTeam == null)
return;
event.setCancelled(true);
ItemMeta itemMeta = event.getItem().getItemMeta();
String displayName = itemMeta.getDisplayName();