Kit Error

Discussion in 'Plugin Development' started by Aephout14, Oct 16, 2014.

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

    Aephout14

    The title pretty much says it all, Doing the first kit "Starterkit" gives you both kits but doing "opkit" gives you just the OP Kit, I am sure this is a simple and very nooby error, Any help would be appreciated

    Code:http://pastebin.com/ztai7cyc
    I am sure the error is 104/105 or somewhere round there.
     
  2. The_FrosTy_Clan
    Code:
    if ((!player.hasPermission("EasYKits.kits.starter") 
    The exclamation mark there is to check if the result of the following boolean statement is the opposite of the result. In other words, you are checking if the player doesn't have the permission.

    Also in the full if statements, you are checking if they don't have the permission, or the command (label) is equal to something. Here is your problem. You should instead be checking if they have the correct permission && command (not command label) is equal to something.
     
Thread Status:
Not open for further replies.

Share This Page