Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /chat [<text>] [<text>] [<text>]:
- permission: sk.chat
- trigger:
- argument 1 is "off":
- set {chat.allowed} to false
- broadcast "<light red>Chat zostal wylaczony przez %player%"
- argument 1 is "on":
- set {chat.allowed} to true
- broadcast "<light green>Chat zostal wlaczony przez %player%"
- argument 1 is "wyczysc":
- execute console command "cc %player%"
- argument 1 is "temp":
- if argument 2 is not empty:
- if argument 3 is not empty:
- if {chat.%argument 3%.powod} is not set:
- make player execute command "chattime %argument 2%"
- set {chat.allowed} to false
- broadcast "&cChat zostal wylaczony czasowo na &9%argument 2% sekund &cprzez %player%&c. Powod: &9%argument 3%"
- argument 1 is "mow":
- if argument 2 is not empty:
- if argument 3 is not empty:
- if {chat.%argument 3%.nick} is not set:
- make player execute command "chatmow %argument 2%"
- set {chat.allowed} to false
- execute console command "pex user %argument 3% add sk.echat"
- broadcast "&cAdmin %player% dal prawo glosu &9%argument 3%&c na&9 %argument 2%"
- argument 1 is "autor":
- message "----- &3Chat&6Plugin &f-----"
- message " &7Autor: &9~NNoF"#zakaz zmieniana tych wiadomości
- message " &7Wersja Skryptu: &91.0 BETA"
- message " &7Znajdziesz mnie na: &9Bukkit.pl&8"
- on chat:
- if player has permission "sk.echat":
- stop
- else:
- if {chat.allowed} is false:
- cancel event
- send "<light red>Pisanie wylaczone.!"
- stop
- if {chat.allowed} is true:
- stop
- command /chattime <integer>:
- trigger:
- if player has permissions "sk.chat":
- set {time} to arg 1
- set {limit} to 10000000000
- set {counter} to 0
- set {limit2} to 0
- command /chatmow <integer>:
- trigger:
- if player has permissions "sk.chat":
- set {time2} to arg 1
- set {limit2} to 10000000000
- set {counter2} to 0
- set {limit3} to 0
- Every 1 seconds:
- if {chat.allowed} is false:
- if {time2} is not set:
- stop
- if {limit2} is not set:
- stop
- add 1 to {counter}
- if {counter2} is {time2}:
- execute console command "pex user %argument 3% remove sk.echat"
- broadcast "&cTwoj czas sie skonczyl"
- set {counter2} to 0
- add 1 to {limit3}
- if {limit2} is {limit3}:
- delete {time2}
- delete {counter2}
- delete {limit2}
- delete {limit3}
- Every 1 seconds:
- if {chat.allowed} is false:
- if {time} is not set:
- stop
- if {limit} is not set:
- stop
- add 1 to {counter}
- if {counter} is {time}:
- set {chat.allowed} to true
- broadcast "<light green>Znowu mozesz pisac"
- set {counter} to 0
- add 1 to {limit2}
- if {limit} is {limit2}:
- delete {time}
- delete {counter}
- delete {limit}
- delete {limit2}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement