Awc0GXzK
Język: Skript
|
Autor: Velos
command /chat [<text>] [<text>] [<text>]: aliases: cc trigger: if player has permission "ffm.chat": if arg 1 is not set: send "" send "&8[&aChat&8]" send "&7/chat clear,cc,wyczysc [hidden] &a- czyści czat, argument '&1hidden&a' ukrywa przez kogo został wyczyszczony" send "&7/chat on/off &a- wlącza/wyłącza czat" send "&7/chat zamien <z> <na> &a- zamienia dane słowo na inny tekst, argument '&1lista&a' pokazuje wszystkie zamieniane słowa" send "&8[&aChat&8]" send "" else if arg 1 is "clear" or "cc": if arg 2 is "hidden": loop 100 times: send "" to all players else: loop 100 times: send "" to all players send "" send "&cCzat został wyczyszczony przez %player%&c!" send "" else if arg 1 is "off": set {chat.mute} to true send "" send "&cCzat został wyłączony!" send "" else if arg 1 is "on": set {chat.mute} to false send "" send "&aCzat został włączony!" send "" else if arg 1 is "zamien": if arg 2 is set: if arg 2 is not "lista" or "wyczysc" or "usun": if arg 3 is set: loop {chat::replacefrom::*}: if loop-value is arg 2: set {chat::replaceto::%loop-index%} to arg 3 send "" send "&aUstawiono &7&o%loop-value% &ana &7&o%arg 3%&c!" send "" stop add arg 2 to {chat::replacefrom::*} add arg 3 to {chat::replaceto::*} send "" send "&aDodano &7&o%arg 2% &a do list słow do zamiany!" send "&aZamiana na: &7&o%arg 3%" send "" else: send "" send "&cPodaj na co chcesz zamienic &7&o%arg 2%&c!" send "" else if arg 2 is "wyczysc": clear {chat::replacefrom::*} clear {chat::replaceto::*} send "" send "&cWyczysczono listę słów do zamiany." send "" else if arg 2 is "usun": if arg 3 is set: loop {chat::replacefrom::*}: if loop-value is arg 3: clear {chat::replacefrom::%loop-index%} clear {chat::replaceto::%loop-index%} send "" send "&cUsunięto &7&o%loop-value% &cz listy słow do zamiany!" send "" stop else: send "" send "&cPodaj słowo, które chcesz usunąć!" send "" else: send "" loop {chat::replacefrom::*}: send "%loop-value% :: %{chat::replaceto::%loop-index%}%" send "" else: send "" send "&cPodaj co chcesz zamienic!" send "" else: send "" send "&cNie masz uprawnień!" send "" on chat: if {chat.mute} is true: cancel event else: loop {chat::replacefrom::*}: if message contains loop-value: set {_rplto} to {chat::replaceto::%loop-index%} replace all "%loop-value%" with "%{_rplto}%" in message stop