Nd_ Posted July 18, 2019 Share Posted July 18, 2019 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 type /kit Cop, it shows the You have equipped the Cop kit and You don't have the Cop kit(if you have the permission) and gives you the kit. If you don't have the permission, it does nothing. Adding stop after the You have equipped the Cop kit message stops it from showing both messages, but it won't send the You don't have the cop kit message if you don't have the permission Link to comment Share on other sites More sharing options...
xlr100 Posted July 18, 2019 Share Posted July 18, 2019 It looks like you didnt Indent your code correctly. I advise you to read this tutorial https://skripthub.net/tutorials/17 and specifically the Core Concepts of Skript part 1 Link to comment Share on other sites More sharing options...
Nd_ Posted July 18, 2019 Author Share Posted July 18, 2019 33 minutes ago, OMan100 said: It looks like you didnt Indent your code correctly. I advise you to read this tutorial https://skripthub.net/tutorials/17 and specifically the Core Concepts of Skript part Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now