Jump to content
  • 0

else running when the skript is successful


Nd_

Question

Code:

command /kit <text>:
           description: Get a Kit
           permission: getkit
           executable by: players
           trigger:
                      world is "ul_KitPVP":
                                 if arg 1 is "default":
                                            give player 1 wooden sword
                                            equip player with all leather armor
                                            message "&4You have equipped the Default kit"         
                                 else if arg 1 is "Cop":
                                            player has permission "kit.cop"
                                            equip player with all leather armor
                                            dye player's helmet blue
                                            dye player's chestplate blue
                                            dye player's leggings blue
                                            dye player's boots blue
                                            message "&4You have equipped the &1Cop&4 kit" 
                                            else:
                                            message "&4You don't have the &1Cop&4 kit"
                                 else:
                                            message "&4The Kit %argument% isn't a kit"
                      else:
                                 message "&4You are not in the KitPVP world"

When I run /kit Cop, it shows both the &4You have equipped the &1Cop&4 kit and the &4You don't have the &1Cop&4 kit messages. Also, it you don't have the permission, it says(or does) anything. I tried putting stop  after the Equip Cop message, but only fixed one problem.

Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...