pete_parker Posted July 14, 2021 Share Posted July 14, 2021 command /disableores [<text>]: permission: hcf.admin.ore permission message: &cYou lack permission! trigger: if arg 1 is "true": if {ore} is true: send "&7Disableores is already &aEnabled" else: set {ore} to true send "&7Disableores is &aEnabled" if arg 1 is "false": if {oreregen} is false: send "&7Disableores is already &aDisabled" else: set {oreregen} to false send "&7Disableores is &aDisabled" if arg 1 is not set: send "<enable/disable>" on place: if {ores} is true: player is holding ancient debris cancel event send "&e&l(!) &eThis item cannot be placed" So if i run this command this happends https://imgur.com/a/Vz9Get8 Any help on this? Link to comment Share on other sites More sharing options...
StarBunnie Posted July 14, 2021 Share Posted July 14, 2021 5 hours ago, pete_parker said: command /disableores [<text>]: permission: hcf.admin.ore permission message: &cYou lack permission! trigger: if arg 1 is "true": if {ore} is true: send "&7Disableores is already &aEnabled" else: set {ore} to true send "&7Disableores is &aEnabled" if arg 1 is "false": if {oreregen} is false: send "&7Disableores is already &aDisabled" else: set {oreregen} to false send "&7Disableores is &aDisabled" if arg 1 is not set: send "<enable/disable>" on place: if {ores} is true: player is holding ancient debris cancel event send "&e&l(!) &eThis item cannot be placed" So if i run this command this happends https://imgur.com/a/Vz9Get8 Any help on this? You used two different variables {ores} and {oreregen} Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
pete_parker Posted July 14, 2021 Author Share Posted July 14, 2021 12 hours ago, StarBunnie said: You used two different variables {ores} and {oreregen} dam how did i miss that , thank you ! 1 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