Solved error while loading Chest Gui?

Discussion in 'Plugin Development' started by IntelCorporation, Jan 18, 2018.

Thread Status:
Not open for further replies.
  1. I'm new to bukkit started like a few days back, I was exploring the chest gui, and I couldn't see why my problem wasn't getting fixed??

    I'm using 1.8 by the way. Here are my two classes

    Main class: https://pastebin.com/FVCSZmrd

    Inv class: https://pastebin.com/1rHn7s42

    The Console suggests the Main class is the issue, but I don't see any errors
     
    Last edited: Jan 18, 2018
  2. Online

    timtower Administrator Administrator Moderator

    @IntelCorporation 1. For you color strings, please use ChatColor.enumvalue
    And what is the error?
     
  3. @timtower I'm aware of ChatColor. I just prefer the String method.
    The outcome on the client side is:
    An internal error occurred while attempting to perform this command.

    And the console log is: https://pastebin.com/3SUNvSKu
     
  4. Offline

    Machine Maker

    1. You don't need to log your own plugins. Bukkit does this for you.

    2. Try checking if the gui variable is null just before like 50 and 58 in your main class. If so, then you are trying to run show() on the null variable which will give you that error.
     
Thread Status:
Not open for further replies.

Share This Page