Advertisement
fleft17

Untitled

Jul 4th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. options:
  2. P: &7[&4Restriction&7]&r
  3. command /Restriction <text> [<text>] [<integer>]:
  4. permission: skript.Restriction
  5. trigger:
  6. if arg-1 is "on" or "enable" or "true":
  7. set {Restriction} to true
  8. broadcast "{@P} Enabled by %command sender%!"
  9.  
  10.  
  11. if arg-1 is "off" or "disable" or "true":
  12. set {Restriction} to false
  13. broadcast "{@P} Disabled by %command sender%!"
  14.  
  15.  
  16. if arg-1 is "toggle" or "switch":
  17. {Restriction} is true:
  18. command sender command "/Restriction off"
  19. stop trigger
  20. {Restriction} is false:
  21. command sender command "/Restriction on"
  22. stop trigger
  23.  
  24.  
  25. if arg-1 is "set":
  26. arg-2 is "diamond" or "diamonds":
  27. set {DiamondRestriction} to arg-3
  28. broadcast "{@P} Diamond limit changed to &b%arg-3%&r by %command sender%!"
  29.  
  30. arg-2 is "gold":
  31. set {GoldRestriction} to arg-3
  32. broadcast "{@P} Gold limit changed to &6%arg-3%&r by %command sender%!"
  33.  
  34.  
  35. if arg-1 is "reset":
  36. set {TotalDiamondCount} to 0
  37. set {TotalGoldCount} to 0
  38. set {DiamondRestriction} to 0
  39. set {GoldRestriction} to 0
  40. broadcast "{@P} Reset by %command sender%!"
  41.  
  42.  
  43.  
  44. on mine of diamond ore:
  45. {Restriction} is true:
  46. add 1 to {TotalDiamondCount}
  47. if {TotalDiamondCount} is 10 or 25 or 50 or 100 or 150 or 200 or 225 or 250 or 300 or 350 or 400:
  48. broadcast "{@P} %{TotalDiamondCount}% &bdiamonds&r have been mined!"
  49. if {TotalDiamondCount} is greater than {DiamondRestriction}:
  50. cancel the event
  51. message "{@P} You cannot mine &bdiamonds&r!"
  52.  
  53.  
  54. on mine of gold ore:
  55. {Restriction} is true:
  56. add 1 to {TotalGoldCount}
  57. if {TotalGoldCount} is less than or equal to {GoldRestriction}:
  58. cancel the event
  59. set the block to air
  60. drop 1 gold ingot
  61. if {TotalGoldCount} is 1-00 or 50 or 100 or 150 or 200 or 250 or 300 or 350 or 400 or 500 or 600 or 700 or 750 or 800 or 900 or 1000 or 1050 or 1100 or 1150 or 1200 or 1250:
  62. broadcast "{@P} %{TotalGoldCount}% &6gold&r has been mined!"
  63. if {TotalGoldCount} is greater than {GoldRestriction}:
  64. cancel the event
  65. message "{@P} You cannot mine &6gold&r!"
  66.  
  67.  
  68. command /ores:
  69. trigger:
  70. {Restriction} is true:
  71. message "{@P} %{TotalDiamondCount}% &bdiamonds&r have been mined!"
  72. message "{@P} %{TotalGoldCount}% &6gold&r has been mined!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement