Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /chat [<text="help">]:
- permission: chat.*
- permission message: &cNie masz uprawnien do tej komendy!
- trigger:
- if arg 1 is not "clear" or "c" or "tryb" or "t" or "help":
- execute player command "/chat help"
- if arg 1 is "help":
- send "&8>===================<"
- send " &6Chat &7by &6xNawi"
- send " "
- send "&8> &6Uzycie:"
- send "&8> &6/chat tryb &8- &7Wlacza/wylacza chat"
- send "&8> &6/chat clear &8- &7Czysci chat"
- send " "
- if {chat::tryb} is false:
- send "&8> &7Chat jest aktualnie &aWlaczony"
- else:
- send "&8> &7Chat jest aktualnie &cWylaczony"
- if arg 1 is "clear" or "c":
- loop 100 times:
- broadcast " "
- broadcast "&7Chat zostal wyczyszczony przez &6%player%"
- loop all players:
- play raw sound "note.pling" at loop-player with pitch 1 volume 5
- if arg 1 is "tryb" or "t":
- if {chat::tryb} is true:
- set {chat::tryb} to false
- broadcast "&7Chat zostal &awlaczony &7przez &6%player%"
- loop all players:
- play raw sound "note.pling" at loop-player with pitch 1 volume 5
- else:
- set {chat::tryb} to true
- broadcast "&7Chat zostal &cwylaczony &7przez &6%player%"
- loop all players:
- play raw sound "note.pling" at loop-player with pitch 1 volume 5
- command /mute [<offlineplayer>] [<integer>] [<text>]:
- permission: mute.*
- permission message: &cNie masz uprawnien do tej komendy!
- trigger:
- if arg-offlineplayer is not set:
- send "&8>===================<"
- send " &6Mute &7by &6xNawi"
- send " "
- send "&8> &6Uzycie:"
- send " &aJesli gracz nie jest jeszcze wyciszony:"
- send "&8> &6/mute <gracz> <czas w minutach> <powod> &8- &7wycisza"
- send " "
- send " &cJesli gracz jest juz wyciszony:"
- send "&8> &6/mute <gracz> &8- &7Odcisza"
- if arg-offlineplayer is set:
- if arg-offlineplayer is online:
- if arg-integer is set:
- if arg 3 is set:
- if {mute::%arg-offlineplayer%} is false:
- broadcast "&6%player% &7wyciszyl gracza &6%arg-offlineplayer% &7za &6%arg 3% &7na czas &6%arg-integer% &7minut"
- play raw sound "note.pling" at arg-offlineplayer with pitch 1 volume 5
- set {mute::%arg-offlineplayer%} to true
- set {mute::%arg-offlineplayer%::powod} to arg 3
- set {mute::%arg-offlineplayer%::czas} to arg-integer
- set {mute::%arg-offlineplayer%::przez} to player
- loop arg-integer times:
- wait 1 minutes
- remove 1 from {mute::%arg-offlineplayer%::czas}
- if {mute::%arg-offlineplayer%::czas} = 0:
- if {mute::%arg-offlineplayer%} is true:
- set {mute::%arg-offlineplayer%} to false
- if arg-offlineplayer is online:
- send "&7Mozesz juz pisac na chacie." to arg-offlineplayer
- play raw sound "note.pling" at arg-offlineplayer with pitch 2 volume 5
- else:
- set {mute::%arg-offlineplayer%} to false
- broadcast "&6%player% &7odciszyl gracza &6%arg-offlineplayer%"
- else:
- send "&cPodaj powod wyciszenia!"
- else:
- if {mute::%arg-offlineplayer%} is true:
- set {mute::%arg-offlineplayer%} to false
- broadcast "&6%player% &7odciszyl gracza &6%arg-offlineplayer%"
- else:
- send "&cPodaj czas wyciszenia (w minutach) !"
- else:
- send "&cGracza &6%arg-offlineplayer% &cnie ma na serwerze!"
- on chat:
- if {chat::tryb} is true:
- if player don't have permissions "chat.*":
- cancel event
- send "&cChat jest obecnie wylaczony."
- if {mute::%player%} is true:
- cancel event
- send "&7Zostales wyciszony przez &6%{mute::%player%::przez}% &7za &6%{mute::%player%::powod}%"
- send "&7Bedziesz mogl pisac za &6%{mute::%player%::czas}% &7minut"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement