Custom Inventory not showing up

Discussion in 'Plugin Development' started by Callum.K, Jan 2, 2014.

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

    Callum.K

    Hello I just attempted to make a custom inventory however it doesn't seem to be working, I use one public and one command which are
    Code:java
    1. public static Inventory serverMenuInv = Bukkit.createInventory(null, 9, "Server Menu");
    2.  
    3. if(cmd.getName().equalsIgnoreCase("servermenu"))
    4. {
    5. player.openInventory(Main.serverMenuInv);
    6. }
    7.  


    It just doesn't open but the command is issused
     
  2. Offline

    Forseth11

    Callum.K Are you sure it even gets to that part of the code. Log something there to see if it even gets there.
     
  3. Offline

    Axanite

    Just curious, did you sort of take my idea from my post? :/
     
  4. Offline

    Callum.K

    No I've been trying to make this from yesterday (Following a tutorial)

    The console says the command is issued so I guess so.
     
  5. Offline

    Axanite


    Oh ok.
     
Thread Status:
Not open for further replies.

Share This Page