HotbarGUI hotfix
Dieser Commit ist enthalten in:
Ursprung
595e7a0ea4
Commit
7f8f1490ab
@ -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();
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren