Update InventoryListener.java
This commit is contained in:
@@ -8,7 +8,7 @@ public class InventoryListener implements Listener{
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPvpMenuInteract(InventoryClickEvent e) {
|
public void onPvpMenuInteract(InventoryClickEvent e) {
|
||||||
Player p = e.getWhoClicked();
|
Player p = e.getWhoClicked();
|
||||||
Inventory inv = e.getClickedInventory();
|
Inventory inv = e.getClickedInventory();
|
||||||
String invtitle = e.getView().getTitle();
|
String invtitle = e.getView().getTitle();
|
||||||
if (invtitle.equals("PvP-Menu")) {
|
if (invtitle.equals("PvP-Menu")) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user