Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - '@SETINT $<playername>.XPcount <totalexp:<playername>>'
- - '@SETINT $<playername>.XPcost 25'
- - '@IF i $<playername>.XPcount < $<playername>.XPcost'
- - ' @PLAYER &6[<entityname>] &eYou do not have enough XP for Wheat seeds!'
- - ' @PLAYER &9[VT] &eYou need 25 XP, but only have $<playername>.XPcount'
- - ' @DELVAR i $<playername>.XPcount'
- - ' @DELVAR i $<playername>.XPcost'
- - ' @EXIT'
- - '@ELSE'
- - ' @SUBINT $<playername>.XPcount $<playername>.XPcost'
- - ' @CMDCON xp set <playername> $<playername>.XPcount'
- - ' @CMDCON give <playername> 295 5'
- - ' @PLAYER &6[<entityname>] &eThank you for buying Wheat seeds!'
- - ' @PLAYER &9[VT] &eYou have $<playername>.XPcount XP remaining!'
- - ' @DELVAR i $<playername>.XPcount'
- - ' @DELVAR i $<playername>.XPcost'
- - '@ENDIF'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement