SaveLoadKit with a command not working.. Please help!

Discussion in 'Plugin Development' started by across566, May 25, 2015.

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

    across566

    Hi I have been making a save load kit plugin using a command and it isnt working... no errors!
    my code is here:
    http://pastebin.com/7WE0LgYz

    Basic idea of the plugin.
    When do the command /savekit Kit name> it saves contents of inventory and armour /loadkit <kit name> loads it and puts it on you.

    All saved to a config file
     
  2. Offline

    CraftCreeper6

    @across566
    You are trying to compare a(n) String[] to a List.
     
  3. Offline

    across566

    a(n)?
    do you mean argument? if so how do i fix that because I couldnt get it to work?
     
  4. Offline

    CraftCreeper6

    @across566
    I used a(n) as you may say it differently. However, you need to change line 26 (And others matching it, if any) to if(array.contains("myString"));
     
Thread Status:
Not open for further replies.

Share This Page