HotbarGUI hotfix
Dieser Commit ist enthalten in:
Ursprung
595e7a0ea4
Commit
7f8f1490ab
@ -15,13 +15,13 @@ public class HotbarGUIListener extends BasicListener {
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void handlePlayerInteract(PlayerInteractEvent event) {
|
public void handlePlayerInteract(PlayerInteractEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
event.setCancelled(true);
|
|
||||||
|
|
||||||
if(event.getItem() != null) {
|
if(event.getItem() != null) {
|
||||||
FightTeam fightTeam = Fight.getPlayerTeam(player);
|
FightTeam fightTeam = Fight.getPlayerTeam(player);
|
||||||
if(fightTeam == null)
|
if(fightTeam == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
event.setCancelled(true);
|
||||||
ItemMeta itemMeta = event.getItem().getItemMeta();
|
ItemMeta itemMeta = event.getItem().getItemMeta();
|
||||||
String displayName = itemMeta.getDisplayName();
|
String displayName = itemMeta.getDisplayName();
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren