Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &7[&4Restriction&7]&r
- command /Restriction <text> [<text>] [<integer>]:
- permission: skript.Restriction
- trigger:
- if arg-1 is "on" or "enable" or "true":
- set {Restriction} to true
- broadcast "{@P} Enabled by %command sender%!"
- if arg-1 is "off" or "disable" or "true":
- set {Restriction} to false
- broadcast "{@P} Disabled by %command sender%!"
- if arg-1 is "toggle" or "switch":
- {Restriction} is true:
- command sender command "/Restriction off"
- stop trigger
- {Restriction} is false:
- command sender command "/Restriction on"
- stop trigger
- if arg-1 is "set":
- arg-2 is "diamond" or "diamonds":
- set {DiamondRestriction} to arg-3
- broadcast "{@P} Diamond limit changed to &b%arg-3%&r by %command sender%!"
- arg-2 is "gold":
- set {GoldRestriction} to arg-3
- broadcast "{@P} Gold limit changed to &6%arg-3%&r by %command sender%!"
- if arg-1 is "reset":
- set {TotalDiamondCount} to 0
- set {TotalGoldCount} to 0
- set {DiamondRestriction} to 0
- set {GoldRestriction} to 0
- broadcast "{@P} Reset by %command sender%!"
- on mine of diamond ore:
- {Restriction} is true:
- add 1 to {TotalDiamondCount}
- if {TotalDiamondCount} is 10 or 25 or 50 or 100 or 150 or 200 or 225 or 250 or 300 or 350 or 400:
- broadcast "{@P} %{TotalDiamondCount}% &bdiamonds&r have been mined!"
- if {TotalDiamondCount} is greater than {DiamondRestriction}:
- cancel the event
- message "{@P} You cannot mine &bdiamonds&r!"
- on mine of gold ore:
- {Restriction} is true:
- add 1 to {TotalGoldCount}
- if {TotalGoldCount} is less than or equal to {GoldRestriction}:
- cancel the event
- set the block to air
- drop 1 gold ingot
- 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:
- broadcast "{@P} %{TotalGoldCount}% &6gold&r has been mined!"
- if {TotalGoldCount} is greater than {GoldRestriction}:
- cancel the event
- message "{@P} You cannot mine &6gold&r!"
- command /ores:
- trigger:
- {Restriction} is true:
- message "{@P} %{TotalDiamondCount}% &bdiamonds&r have been mined!"
- message "{@P} %{TotalGoldCount}% &6gold&r has been mined!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement