Advertisement
twogz

Untitled

Jul 26th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 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 [<player>]:
  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. if arg 1 is not set:
  28. set {xp.%uuid of player%} to 0
  29. set {xpmax.%uuid of player%} to 1000
  30. set {level.%uuid of player%} to 1
  31. set {gold.%uuid of player%} to 0
  32. message "&3All of your stats have been reset."
  33. else:
  34. set {xp.%uuid of arg 1%} to 0
  35. set {xpmax.%uuid of arg 1%} to 1000
  36. set {level.%uuid of arg 1%} to 1
  37. set {gold.%uuid of arg 1%} to 0
  38. message "&3The stats of %arg 1% have been reset."
  39.  
  40. command /stats [<player>]:
  41. trigger:
  42. if arg 1 is not set:
  43. message ""
  44. message "&3Player: &b%player%"
  45. message "&eYou are level %{level.%uuid of player%}% and need &b%{xpmax.%uuid of player%} - {xp.%uuid of player%}% &emore experience to level up."
  46. message "&6You currently have &b%{gold.%uuid of player%}% &6gold."
  47. message ""
  48. else:
  49. if arg 1 is not online:
  50. message "&c/stats (online player)"
  51. else:
  52. message ""
  53. message "&3Player: &b%arg 1%"
  54. 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."
  55. message "&6%arg 1% currently has &b%{gold.%uuid of arg 1%}% &6gold."
  56. message ""
  57.  
  58. on chat:
  59. cancel event
  60. if {prefix.%uuid of player%} is not set:
  61. broadcast "&7 Lvl. %{level.%uuid of player%}% %player%: %message%"
  62. else:
  63. broadcast "&f Lvl. %{level.%uuid of player%}% %{prefix.%uuid of player%}% %player%&f: %message%"
  64.  
  65. command /prefix [<player>] [<text>]:
  66. trigger:
  67. if player does not have permission "admin.prefix":
  68. message "&cYou must be admin or higher to use this command."
  69.  
  70. else:
  71. if arg 1 is not set:
  72. message "&c/prefix (player) (text)"
  73. else:
  74. set {prefix.%uuid of arg 1%} to "%coloured arg 2%"
  75. message "&3You set the prefix of &e%arg 1% &3to %coloured arg 2%"
  76.  
  77. on break:
  78. cancel event
  79. if event-block is gold ore:
  80. if player's gamemode is survival:
  81. if held item is pickaxe:
  82. if player has permission "player.vip":
  83. add 2 to {gold.%uuid of player%}
  84. message "&6 + 2 gold has been added to your balance. &7(2x multiplier.)"
  85. else:
  86. add 1 to {gold.%uuid of player%}
  87. message "&6 + 1 gold has been added to your balance. &7(no multiplier)"
  88. set {_r} to a random integer between 0 and 1
  89. if {_r} = 0:
  90. set event-block to stone
  91. if {_r} = 1:
  92. set event-block to andesite
  93. wait 5 minutes
  94. set event-block to gold ore
  95. else:
  96. message "&cThis block must be mined with a pickaxe."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement