Advertisement
Guest User

ClearXP Skript

a guest
Nov 21st, 2014
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. # ClearXP Skript
  2. # Created By - Qeau
  3. # Feel free to edit!
  4.  
  5. options:
  6.  
  7. Pre: &8[&bUHC&8]
  8. # Prefix for messages!
  9.  
  10. MC: &7
  11. # Main chat colour!
  12.  
  13. CC: &b
  14. # Secondary chat colour!
  15.  
  16.  
  17. command /clearxp [<player>]:
  18. description: Clear the XP of all players, or 1 specific player.
  19. permission: skript.op
  20. permission message: &4You don't have permission to do this!
  21. trigger:
  22. if arg 1 is set:
  23. execute console command "/xp -2471L %arg 1%"
  24. execute console command "/playsound random.orb %arg 1%"
  25. send "&8[&bFadedUHC&8]&7 Your experience has been cleared!" to arg 1
  26. send "{@Pre}{@CC} %arg 1%'s {@MC}XP was cleared!" to the command sender
  27. else:
  28. loop all players:
  29. execute console command "/xp -24791L %loop-player%"
  30. execute console command "/playsound random.orb %loop-player%"
  31. broadcast "{@Pre}{@MC} Everyone's XP has been cleared!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement