Loading kit

Discussion in 'Plugin Development' started by across566, Aug 29, 2015.

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

    across566

  2. Offline

    PDKnight

    I think the code isn't executing, so try to do
    Code:java
    1. System.out.println("Type: "+type);
    after
    Code:java
    1. p.getInventory().setContents(contents);
    and tell us if it printed something to console :)
     
  3. Offline

    across566

    [10:54:20 INFO]: Type: archer
    The message sets sent to console!
     
  4. Offline

    PDKnight

    :( Than something's wrong with the code :(

    Okay, I'll try to play with the code, please wait :)

    EDIT: Your code works perfectly, man!

    Hastebin
    Download "Test" plugin

    [​IMG]
     
    Last edited: Aug 29, 2015
  5. Offline

    across566

    Why dosent it work for me? Then.... Like saving works fine but loading dosen't!!
    EDIT:
    I put your debug messages in and it said: http://prntscr.com/8a9p5y So it is working just not puting the items in your inventory!
    EDIT:
    I forgot p.updateInventory();
    Thank you for all the help!
     
    Last edited: Aug 29, 2015
  6. Offline

    PDKnight

    @across566 You're really welcome, that's awesome it's solved now! x)

    Cheers,
    PDKnight


    PS: Anyway, please, mark your thread as solved :)
     
Thread Status:
Not open for further replies.

Share This Page