Narratrr Posted July 11, 2021 Share Posted July 11, 2021 So I have this skript here, command /enchant: trigger: open virtual chest inventory with 5 rows named "&eEnchant" to player format gui slot 10 of player with raw cod named "&7Extra | &bEnchant &7|" with lore "&7Max: 2", and "Cost: &b2500 xp" to run: if {extra::%player%::e} = 0: if xp of player <= 2500: execute command "/xp take %player% 2500" set line 1 of lore of player's tool to "&7Extra I" else: send "&cNot Enough Xp" to player when i try and upgrade it, it just sends "&cNot Enough Xp" when i have more then enough anyone know whats wrong? IGN: LastMC Discord: LastXD#7171 Rank: PRO Join date: Monday - December - 23rd - 2019 Link to comment Share on other sites More sharing options...
StarBunnie Posted July 11, 2021 Share Posted July 11, 2021 (edited) 50 minutes ago, LastMC said: So I have this skript here, command /enchant: trigger: open virtual chest inventory with 5 rows named "&eEnchant" to player format gui slot 10 of player with raw cod named "&7Extra | &bEnchant &7|" with lore "&7Max: 2", and "Cost: &b2500 xp" to run: if {extra::%player%::e} = 0: if xp of player <= 2500: execute command "/xp take %player% 2500" set line 1 of lore of player's tool to "&7Extra I" else: send "&cNot Enough Xp" to player when i try and upgrade it, it just sends "&cNot Enough Xp" when i have more then enough anyone know whats wrong? <= | Means less or equal to >= | More than or equal to Basically you just used the wrong symbol and now it only works when you don't have enough Edited July 11, 2021 by StarBunnie 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...
Narratrr Posted July 12, 2021 Author Share Posted July 12, 2021 5 hours ago, StarBunnie said: <= | Means less or equal to >= | More than or equal to Basically you just used the wrong symbol and now it only works when you don't have enough lol IGN: LastMC Discord: LastXD#7171 Rank: PRO Join date: Monday - December - 23rd - 2019 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