Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- if folder "plugins/skript/scripts/Chat" is not exists:
- create folder "plugins/skript/scripts/Chat"
- download from "XXX" to file "plugins/Skript/scripts/Chat/config.yml"
- on load:
- set {Chat::Msg::Clear} to colored value "ChatConfig.msg.clear" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Msg::Wlacz} to colored value "ChatConfig.msg.wlacz" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Msg::Wylacz} to colored value "ChatConfig.msg.wylacz" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Msg::offerror} to colored value "ChatConfig.msg.offerror" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Ip::Minecraft} to colored value "ChatConfig.ip.minecraft" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Ip::Teamspek} to colored value "ChatConfig.ip.teamspeak" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Ip::Strona} to colored value "ChatConfig.ip.strona" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Menu::Nazwa} to colored value "ChatConfig.menu.nazwa" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Menu::Wlacz} to colored value "ChatConfig.menu.wlacz" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Menu::Wylacz} to colored value "ChatConfig.menu.wylacz" get of "plugins/skript/scripts/Chat/config.yml"
- set {Chat::Menu::Clear} to colored value "ChatConfig.menu.clear" get of "plugins/skript/scripts/Chat/config.yml"
- on join:
- loop 100 times:
- send " "
- loop 1 times:
- send "&8*&8&m-----&r&8*&7 Witaj na &9%{Chat::Ip::Minecraft}%! &8*&8&m-----&r&8*"
- send ""
- send ""
- send "&7ยป &fNasz ts to: %{Chat::Ip::Teamspek}%!."
- send "&7ยป &fNasza strona: %{Chat::Ip::Strona}%!."
- send ""
- send ""
- send "&8*&8&m-----&r&8* &8*&8&m-----&r&8* &8*&8&m-----&r&8* &8*&8&m-----&r&8*"
- command /c [<text>]:
- trigger:
- if arg 1 is "czysc" or "cc" or "clear":
- loop 100 times:
- send " " to all players
- loop 1 times:
- send "%{Chat::Msg::Clear}% %player%" to all players
- send " " to all players
- if arg 1 is "off" or "wylacz":
- set {chat} to false
- loop 100 times:
- send " " to all players
- loop 1 times:
- send "%{Chat::Msg::Wylacz}% %player%" to all players
- send " " to all players
- if arg 1 is "on" or "wlacz":
- set {chat} to true
- loop 100 times:
- send " " to all players
- loop 1 times:
- send "%{Chat::Msg::Wlacz}% %player%" to all players
- send " " to all players
- if arg 1 is not set:
- open chest with 1 rows named "%{Chat::Menu::Nazwa}%" to player
- format slot 0 of player with 1 of 160:15 named " " to run ""
- format slot 1 of player with 1 of 160:15 named " " to run ""
- format slot 2 of player with 1 of 160:4 named "%{Chat::Menu::Clear}%" to close then run [make player execute command "/c clear"]
- format slot 3 of player with 1 of 160:15 named " " to run ""
- format slot 4 of player with 1 of 160:14 named "%{Chat::Menu::Wylacz}%" to close then run [make player execute command "/c off"]
- format slot 5 of player with 1 of 160:15 named " " to run ""
- format slot 6 of player with 1 of 160:5 named "%{Chat::Menu::Wlacz}%" to close then run [make player execute command "/c on"]
- format slot 7 of player with 1 of 160:15 named " " to run ""
- format slot 8 of player with 1 of 160:15 named " " to run ""
- stop
- on chat:
- if {chat} is false:
- player don't have permissions "chat.*" or "chat.spam":
- cancel event
- send "%{Chat::Msg::offerror}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement