UncloseableMenu

Discussion in 'Plugin Requests' started by XxDawnsusxX, Feb 19, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    XxDawnsusxX

    Plugin category: General

    Suggested name: NoCloseMenu

    What I want: So what i'm needing is a way to have a menu open for players on join and not being able to exit the menu. More info: When a player connects to the server, a menu will open up for them and if they try and exit the menu, it will reopen making them unable to exit the menu. Leaving them to choose a configurable menu item to click (wanting it to have where they will click an item and will go on from there).

    Ideas for commands: No commands needed yet.

    Ideas for permissions: No Permissions needed yet.

    When I'd like it by: Soonish.
     
  2. Code:
    @EventHandler
    public void onClose(InventoryCloseEvent event) {
     if(event.getInventory().getName().equals("IventoryName")) { //Easiest way
      ((Player) event.getPlayer()).openInventory(event.getInventory());
     }
    }
    
     
Thread Status:
Not open for further replies.

Share This Page