picapi_

BlockRush skript

Apr 6th, 2015
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. on break:
  2. {BlockRush.enabled} is equal to 1:
  3. loop {BlockRush.blocks::*}:
  4. loop-value is type of block:
  5. exit
  6. add type of block to {BlockRush.blocks::*}
  7. broadcast "<gold>%player% <gray>was the first player to break %block%!"
  8. message "<gold>Rewarded %{BlockRush.reward}%!" to the player
  9. give {BlockRush.reward} to the player
  10.  
  11. command /blockrush <text>:
  12. trigger:
  13. arg 1 is "enable":
  14. player is not op:
  15. message "You must be a server op to use this command!"
  16. else:
  17. set {BlockRush.enabled} to 1
  18. clear {BlockRush.blocks::*}
  19. broadcast "<gray>%player% just <green>ENABLED <gray>BlockRush!"
  20. arg 1 is "disable":
  21. player is not op:
  22. message "You must be a server op to use this command!"
  23. else:
  24. set {BlockRush.enabled} to 0
  25. broadcast "<gray>%player% just <red>DISABLED <gray>BlockRush!"
  26. arg 1 is "reset":
  27. player is not op:
  28. message "You must be a server op to use this command!"
  29. else:
  30. clear {BlockRush.blocks::*}
  31. broadcast "<gray>%player% just <gold>RESET <gray>the block list for BlockRush!"
  32. arg 1 is "list":
  33. message "<red>Blocks that have been mined:"
  34. message "%{BlockRush.blocks::*}%"
  35. arg 1 is "help":
  36. message "/blockrush []"
  37. message "enable; enables the scenario and resets the block list; OP ONLY"
  38. message "disable; disables the scenario; OP ONLY"
  39. message "reset; resets the block list; OP ONLY"
  40. message "list; shows the block list"
  41. message "setreward; sets the reward to held item; OP ONLY"
  42. message "reward; tells the player the current reward"
  43. arg 1 is "setreward":
  44. player is not op:
  45. message "You must be a server op to use this command!"
  46. else:
  47. set {BlockRush.reward} to player's tool
  48. message "<gold>Set reward to %{BlockRush.reward}%!"
  49. arg 1 is "reward":
  50. message "<gold>Current reward is %{BlockRush.reward}%!"
Advertisement
Add Comment
Please, Sign In to add comment