Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Autor: Shooterowy
- options:
- time_on: 8
- time_off: 20
- variables:
- {TNT::status} = 2
- on place of TNT:
- if player doesn't have the permission "TNT.*" or "TNT.bypass":
- if {TNT::status} is 0:
- cancel event
- send "&cTNT jest aktualnie wylaczone przez administratora."
- stop
- if {TNT::status} is 2:
- if hour is smaller than {@time_on}:
- cancel event
- send "&7TNT jest wlaczone w godzinach od &c{@time_on} &7do &c{@time_off}&c."
- stop
- if hour is more than or equal to {@time_off}:
- cancel event
- send "&7TNT jest wlaczone w godzinach od &c{@time_on} &7do &c{@time_off}&c."
- stop
- command /tnt [<text>]:
- trigger:
- if arg is not set:
- if {TNT::status} is 0:
- send "&cTNT jest aktualnie wylaczone przez administratora."
- stop
- if {TNT::status} is 1:
- send "&aTNT jest aktualnie wlaczone przez administratora."
- stop
- if {TNT::status} is 2:
- send "&7TNT jest wlaczone w godzinach od &c{@time_on} &7do &c{@time_off}&c."
- if hour is smaller than {@time_on}:
- send "&cTNT jest aktualnie wylaczone."
- stop
- if hour is more than or equal to {@time_off}:
- send "&cTNT jest aktualnie wylaczone."
- stop
- send "&aTNT jest aktualnie wlaczone."
- stop
- if arg is not "wlacz" or "on" or "wylacz" or "off" or "auto":
- execute player command "tnt"
- stop
- if player doesn't have the permission "TNT.*":
- send "&cNie masz uprawnien do tej komendy!"
- stop
- if arg is "wlacz" or "on":
- set {TNT::status} to 1
- send "&aWlaczyles TNT."
- stop
- if arg is "wylacz" or "off":
- set {TNT::status} to 0
- send "&cWylaczyles TNT."
- stop
- if arg is "auto":
- set {TNT::status} to 2
- send "&7Ustawiles TNT na tryb automatyczny."
- stop
Add Comment
Please, Sign In to add comment