Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ClearXP Skript
- # Created By - Qeau
- # Feel free to edit!
- options:
- Pre: &8[&bUHC&8]
- # Prefix for messages!
- MC: &7
- # Main chat colour!
- CC: &b
- # Secondary chat colour!
- command /clearxp [<player>]:
- description: Clear the XP of all players, or 1 specific player.
- permission: skript.op
- permission message: &4You don't have permission to do this!
- trigger:
- if arg 1 is set:
- execute console command "/xp -2471L %arg 1%"
- execute console command "/playsound random.orb %arg 1%"
- send "&8[&bFadedUHC&8]&7 Your experience has been cleared!" to arg 1
- send "{@Pre}{@CC} %arg 1%'s {@MC}XP was cleared!" to the command sender
- else:
- loop all players:
- execute console command "/xp -24791L %loop-player%"
- execute console command "/playsound random.orb %loop-player%"
- broadcast "{@Pre}{@MC} Everyone's XP has been cleared!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement