Nd_ Posted July 8, 2019 Share Posted July 8, 2019 So I am implementing a custom Kit system where the player cannot get two kits during one life. However, I have 34 errors on it. Please help. Thanks. Code: command /kit <text>: description: Get a kit permission: getakit executable by: players trigger: world is "ul_KitPVP" if arg 1 is "default": if {%player%.getakit} is true clear the player's inventory set slot 0 of player to a wooden sword equip player with all leather armor set {%player%.getakit} to false else message "&4Please wait until you die" else if arg 1 is "Iron": if player has permission "kit.Iron": if {%player%.getakit} is true clear the player's inventory set slot 0 of player to an iron sword equip player with all iron armor set {%player%.getakit} to false else message "&4Please wait until you die or leave" else message "&4You don't have the kit Iron" else if arg 1 is "Ultra": if player has permission "kit.Ultra": if {%player%.getakit} is true clear the player's inventory equip iron armor set slot 0 of player to 5 golden apples set slot 1 of player to an iron sword set {%player%.getakit} to false else message "&4Please wait until you die or leave" else message "&4You don't have the kit Ultra" else if arg 1 is "Bouncy": if player has permission "kit.Bouncy": if {%player%.getakit} is true clear the player's inventory apply jump_boost 2 to the player equip iron armor set slot 0 of player to an iron sword set {%player%.getakit} to false else message "&4Please wait until you die or leave" else message "&4You don't have the kit Bouncy" else if arg 1 is "Speed": if player has permission "kit.Speed": if {%player%.getakit} is true clear the player's inventory apply speed 2 to the player equip iron armor set slot 0 of player to an iron sword set slot 1 of player to 2 golden apples set {%player%.getakit} to false else message "&4Please wait until you die or leave" else message "&4You don't have the kit Speed" else if arg 1 is "Lord": if player has permission "kit.Lord": if {%player%.getakit} is true clear the player's inventory equip iron armor set slot 0 of player to a diamond sword set slot 1 of player to 10 golden apples set slot 2 of player to 5 ender pearls set slot 3 of player to an enchanted apple set {%player%.getakit} to false else message "&4Please wait until you die or leave" else message "&4You don't have the kit Lord" else: message "There is no kit named %argument%" else: message "You must be in KitPVP to get a kit" on death of player: set {%player%.getakit} to false Errors(in a google drive because the video blocks the Submit Topic button) https://drive.google.com/file/d/1jT_IG3wqV9uKV8ya_IGY_wXqVz-4XHq8/view?usp=sharing Link to comment Share on other sites More sharing options...
Motionq Posted July 8, 2019 Share Posted July 8, 2019 Seems like you have a ton indentation errors along with missing colons (":") lol Link to comment Share on other sites More sharing options...
Nd_ Posted July 8, 2019 Author Share Posted July 8, 2019 2 minutes ago, Motionq said: Seems like you have a ton indentation errors along with missing colons (":") lol Is it after the if and else's? Link to comment Share on other sites More sharing options...
Motionq Posted July 8, 2019 Share Posted July 8, 2019 Just now, Nd_ said: Is it after the if and else's? yeah, also after you put down colons, you need to indent lol. So for example: else: send "random text" Link to comment Share on other sites More sharing options...
ronaldgameking Posted July 9, 2019 Share Posted July 9, 2019 19 hours ago, Motionq said: yeah, also after you put down colons, you need to indent lol. So for example: else: send "random text" You may put it in code blocks, like: if player has permission "burn.item": send "&cItem burnt" else: send "&aCannot burn item!" Link to comment Share on other sites More sharing options...
Nd_ Posted July 9, 2019 Author Share Posted July 9, 2019 (edited) Thanks! But there were to many errors to keep track of, so I restarted Edited July 9, 2019 by Nd_ Removed a quote Link to comment Share on other sites More sharing options...
ronaldgameking Posted July 9, 2019 Share Posted July 9, 2019 10 minutes ago, Nd_ said: Thanks! But there were to many errors to keep track of, so I restarted Indenting corrected and colons. command /kit <text>: description: Get a kit permission: getakit executable by: players trigger: world is "ul_KitPVP" if arg 1 is "default": if {%player%.getakit} is true: clear the player's inventory set slot 0 of player to a wooden sword equip player with all leather armor set {%player%.getakit} to false else: message "&4Please wait until you die" else if arg 1 is "Iron": if player has permission "kit.Iron": if {%player%.getakit} is true: clear the player's inventory set slot 0 of player to an iron sword equip player with all iron armor set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Iron" else if arg 1 is "Ultra": if player has permission "kit.Ultra": if {%player%.getakit} is true: clear the player's inventory equip iron armor set slot 0 of player to 5 golden apples set slot 1 of player to an iron sword set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Ultra" else if arg 1 is "Bouncy": if player has permission "kit.Bouncy": if {%player%.getakit} is true: clear the player's inventory apply jump_boost 2 to the player equip iron armor set slot 0 of player to an iron sword set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Bouncy" else if arg 1 is "Speed": if player has permission "kit.Speed": if {%player%.getakit} is true: clear the player's inventory apply speed 2 to the player equip iron armor set slot 0 of player to an iron sword set slot 1 of player to 2 golden apples set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Speed" else if arg 1 is "Lord": if player has permission "kit.Lord": if {%player%.getakit} is true: clear the player's inventory equip iron armor set slot 0 of player to a diamond sword set slot 1 of player to 10 golden apples set slot 2 of player to 5 ender pearls set slot 3 of player to an enchanted apple set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Lord" else: message "There is no kit named %argument%" else: message "You must be in KitPVP to get a kit" on death of player: set {%player%.getakit} to false Link to comment Share on other sites More sharing options...
Nd_ Posted July 9, 2019 Author Share Posted July 9, 2019 34 minutes ago, ronaldgameking said: Indenting corrected and colons. command /kit <text>: description: Get a kit permission: getakit executable by: players trigger: world is "ul_KitPVP" if arg 1 is "default": if {%player%.getakit} is true: clear the player's inventory set slot 0 of player to a wooden sword equip player with all leather armor set {%player%.getakit} to false else: message "&4Please wait until you die" else if arg 1 is "Iron": if player has permission "kit.Iron": if {%player%.getakit} is true: clear the player's inventory set slot 0 of player to an iron sword equip player with all iron armor set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Iron" else if arg 1 is "Ultra": if player has permission "kit.Ultra": if {%player%.getakit} is true: clear the player's inventory equip iron armor set slot 0 of player to 5 golden apples set slot 1 of player to an iron sword set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Ultra" else if arg 1 is "Bouncy": if player has permission "kit.Bouncy": if {%player%.getakit} is true: clear the player's inventory apply jump_boost 2 to the player equip iron armor set slot 0 of player to an iron sword set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Bouncy" else if arg 1 is "Speed": if player has permission "kit.Speed": if {%player%.getakit} is true: clear the player's inventory apply speed 2 to the player equip iron armor set slot 0 of player to an iron sword set slot 1 of player to 2 golden apples set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Speed" else if arg 1 is "Lord": if player has permission "kit.Lord": if {%player%.getakit} is true: clear the player's inventory equip iron armor set slot 0 of player to a diamond sword set slot 1 of player to 10 golden apples set slot 2 of player to 5 ender pearls set slot 3 of player to an enchanted apple set {%player%.getakit} to false else: message "&4Please wait until you die or leave" else: message "&4You don't have the kit Lord" else: message "There is no kit named %argument%" else: message "You must be in KitPVP to get a kit" on death of player: set {%player%.getakit} to false Huh, once the tabs are converted to spaces(it didn't work with tabs), there are 78 errors. I am restarting to fix the errors one by one, so I am requesting a lock 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