Advertisement
twogz

Untitled

Jul 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. on first join:
  2. set {xp.%uuid of player%} to 0
  3. set {xpmax.%uuid of player%} to 1000
  4. set {level.%uuid of player%} to 1
  5.  
  6. command /xp [<text>] [<player>] [<integer>]:
  7. trigger:
  8. if player does not have permission "admin.xp":
  9. message "&cYou must be admin or higher to use this command."
  10. else:
  11. if arg 1 is not set:
  12. message "&c/xp give (player) (amount)"
  13. if arg 1 is "give":
  14. add arg 3 to {xp.%uuid of arg 2%}
  15. message "&eYou got %arg 3% experience. Type &b/stats &eto view your progress." to arg 2
  16. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  17. add 1 to {level.%uuid of arg 2%}
  18. set {xp.%uuid of arg 2%} to 0
  19. add 500 to {xpmax.%uuid of arg 2%}
  20. message "&3You are now &blevel %{level.%uuid of arg 2%}%&3. Type &e/stats &3to view your progress." to arg 2
  21.  
  22. command /reset:
  23. trigger:
  24. if player does not have permission "admin.reset":
  25. message "&cYou must be admin or higher to use this command."
  26. else:
  27. set {xp.%uuid of player%} to 0
  28. set {xpmax.%uuid of player%} to 1000
  29. set {level.%uuid of player%} to 1
  30. message "&3All of your stats have been reset."
  31.  
  32. command /stats [<player>]:
  33. trigger:
  34. if arg 1 is not set:
  35. message ""
  36. message "&3Player: &b%player%"
  37. message "&eYou are level %{level.%uuid of player%}% and need &b%{xpmax.%uuid of player%} - {xp.%uuid of player%}% &emore experience to level up."
  38. message ""
  39. else:
  40. if arg 1 is not online:
  41. message "&c/stats (online player)"
  42. else:
  43. message ""
  44. message "&3Player: &b%arg 1%"
  45. message "&eThis player is level %{level.%uuid of arg 1%}% and needs &b%{xpmax.%uuid of arg 1%} - {xp.%uuid of arg 1%}% &emore experience to level up."
  46. message ""
  47.  
  48. on chat:
  49. cancel event
  50. if {prefix.%uuid of player%} is not set:
  51. broadcast "&7 Lvl. %{level.%uuid of player%}% %player%: %message%"
  52. else:
  53. broadcast "&f Lvl. %{level.%uuid of player%}% %{prefix.%uuid of player%}% %player%&f: %message%"
  54.  
  55. command /prefix [<player>] [<text>]:
  56. trigger:
  57. if player does not have permission "admin.prefix":
  58. message "&cYou must be admin or higher to use this command."
  59.  
  60. else:
  61. if arg 1 is not set:
  62. message "&c/prefix (player) (text)"
  63. else:
  64. set {prefix.%uuid of arg 1%} to "%coloured arg 2%"
  65. message "&3You set the prefix of &e%arg 1% &3to %coloured arg 2%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement