Solved Get the data of a config and put in Inventory

Discussion in 'Plugin Development' started by AntonioC94, Mar 24, 2020.

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

    KarimAKL

    @AntonioC94
    1. "pns" is null.
    2. There's no ItemStack(ItemStack) constructor.
     
  2. Offline

    AntonioC94

    The ItemStack need a constructor?

    And Im not really sure if "pns" is null, because when I try to print just "main.psn" I have this line in the console
    Code:
    [18:48:32] [Server thread/INFO]: io.github.shilodabing.PolvosTeleport.Points@1ef18e3
    
    I don't really know what means
     
    Last edited: Apr 3, 2020
  3. Offline

    KarimAKL

    I'd recommend reading up on Java.

    Show me the scope where you initialize the "pns" field.

    That's just the Object's toString() method, it looks like this because you're not overriding it:
    Code:Java
    1. public String toString() {
    2. return getClass().getName() + "@" + Integer.toHexString(hashCode());
    3. }
     
Thread Status:
Not open for further replies.

Share This Page