Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
options:
CC-Message: &6&lCHAT &8» &e%player% &7clearede chatten&8!
P-Message: &4&lFEJL &8» &7Du har ikke adgang til denne kommando&8!
Titel: &8&m|-=-|-|-=-|&r &6&lCHAT &8&m|-=-|-|-=-|
Prefix: &6&lCHAT &8»
command /chat [<text>]:
permission: Chat.admin
permission message: {@P-Message}
trigger:
if arg-1 is not set:
message "{@Titel}"
message "&e/chat clear &8» &7Sletter alle beskeder i chatten&8!"
message "&e/chat on/off &8» &7Gør så folk kan/kan ikke skrive i chatten&8!"
message "{@Titel}"
if arg-1 is "clear":
loop 200 times:
broadcast "&0"
loop 1 times:
broadcast "{@CC-Message}"
stop
if arg-1 is "on":
set {chatoff} to false
broadcast "{@Prefix} &7Man kan nu skrive i &echatten&8!"
message "{@Prefix} &7Du slog &echatten&7 til&8!"
if arg-1 is "off":
set {chatoff} to true
broadcast "{@Prefix} &7Man kan ikke længere skrive i &echatten&8!"
message "{@Prefix} &7Du slog &echatten&7 fra&8!"
command /cc:
permission: Chat.admin
trigger:
loop 200 times:
broadcast "&0"
loop 1 times:
broadcast "{@CC-Message}"
stop
on chat:
if {chatoff} is true:
if player does not have the permission "chat.bypass":
message "{@Prefix} &7Chatten er slået fra&8!"
stop
on chat:
if {chatoff} is true:
if player does not have the permission "chat.bypass":
message "{@Prefix} &7Chatten er slået fra&8!"
stop
Your problem is that you usedYea i have tried that, i can stay write in the chat?
arg-1 is not set:
options:
CC-Message: &6&lCHAT &8» &e%player% &7clearede chatten&8!
P-Message: &4&lFEJL &8» &7Du har ikke adgang til denne kommando&8!
Titel: &8&m|-=-|-|-=-|&r &6&lCHAT &8&m|-=-|-|-=-|
Prefix: &6&lCHAT &8»
command /chat <text>:
permission: Chat.admin
permission message: {@P-Message}
usage: &e/chat [clear|on|off]
trigger:
if arg-1 is "clear":
loop 200 times:
broadcast "&0"
broadcast "{@CC-Message}"
if arg-1 is "on":
set {chatoff} to false
broadcast "{@Prefix} &7Man kan nu skrive i &echatten&8!"
message "{@Prefix} &7Du slog &echatten&7 til&8!"
if arg-1 is "off":
set {chatoff} to true
broadcast "{@Prefix} &7Man kan ikke længere skrive i &echatten&8!"
message "{@Prefix} &7Du slog &echatten&7 fra&8!"
command /cc:
permission: Chat.admin
trigger:
loop 200 times:
broadcast "&0"
broadcast "{@CC-Message}"
on chat:
if {chatoff} is true:
if player does not have the permission "chat.bypass":
message "{@Prefix} &7Chatten er slået fra&8!"
cancel event