Donatecommand: type: command name: donate usage: /donate description: Donates XP to another player. permission: xpcraft.donate permission message: <&c>Sorry, this command is premium only. Purchase a rank in the store to gain access! script: - if { - narrate "<&a>You<&sq>ve donated XP to other players <&b> <&a>times!" - queue clear } - if || ! { - narrate "<&c>Usage: /donate <<>player<>> <<>amount<>>" - queue clear } - if ]> { - narrate "<&c>You don<&sq>t have enough XP!" - queue clear } - if ]> { - narrate "<&c>(`-ะด-) ....seriously?" - queue clear } - if { - narrate "<&c>You have already donated XP today. You will be able to use this command again in ." - queue clear } - define arg1 ]||null> - if == null { - narrate "<&c>Usage: /donate <<>player<>> <<>amount<>>" - queue clear } - define donationtimes - define minimum ].power[0.015].round_down> - if ]> { - narrate "<&c>The current minimum XP you can donate is <&b><&c>!" - queue clear } else { - flag xp:+: - flag xp:-: - flag donated:+:1 - flag donationcooldown duration:24h - narrate "<&a>Donated <&B> <&A>XP to !" target: - if { - narrate "<&a> has donated <&b> <&a>XP to you!" target: } # - run Achievements instantly }