Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {mchat.off} = false
- command /chat [<text>] [<text>]:
- description: Komendy chatu
- permission: michma.chat
- permission message: &cBrak uprawnien! (&7michma.chat&c)
- trigger:
- if arg 1 is not set:
- send "&c[Chat] &6» &7&6m&7Chat - prosty chat na serwer by &6 xMichma1707x"
- send "&c[Chat] &6» &7chat on/off [powod] - wlacza lub wylacza z powodem chat"
- send "&c[Chat] &6» &7chat reload - przleadowuje skrypt"
- send "&c[Chat] &6» &7chat powod - sprawdzasz powod wylaczenia chatu"
- send "&c[Chat] &6» &7chat send [tresc] - wysyla wiadomosc bez prefixu"
- send "&c[Chat] &6» &7chat clear - czysci chat"
- send "&c[Chat] &6» &7Uprawnienia do wszystkiego: &6michma.chat"
- send "&c[Chat] &6» &7Uprawnienia do pisania jak chat jest off: &6michma.chat.pisz"
- if arg 1 is "reload":
- send "&c&l** &7Przeladowywanie..."
- execute console command "/sk reload %script%"
- wait 1 second
- send "&c&l** &7Pomyslnie przeladowano!"
- stop
- if arg 1 is "clearX":
- loop 300 times:
- broadcast ""
- wait 1 tick
- broadcast "&c[Chat] &6» &7Chat zostal: &6WYCZYSZCZONY&7, przez &6CONSOLE"
- stop
- if arg 1 is "send":
- broadcast "%colored arg 2%"
- if arg 1 is "on":
- if {chat} is false:
- set {chat} to true
- broadcast "&c[Chat] &6» &7Chat zostal: &aWLACZONY"
- set {r} to arg 1
- else:
- send "&c[Chat] &6» &7Chat jest juz: &aWLACZONY"
- if arg 1 is "off":
- if {chat} is true:
- if arg 2 is set:
- set {chat} to false
- broadcast "&c[Chat] &6» &7Chat zostal: &cWYLACZONY"
- broadcast "&c[Chat] &6» &7Powód: &6%arg 2%"
- set {r} to arg 2
- else:
- set {chat} to false
- broadcast "&c[Chat] &6» &7Chat zostal: &cWYLACZONY"
- set {r} to arg 1
- else:
- send "&c[Chat] &6» &7Chat jest juz: &cWYLACZONY"
- set {chat} to false
- if arg 1 is "clear":
- loop 100 times:
- send "" to all players
- broadcast "&c[Chat] &6» &7Chat zostal: &6WYCZYSZCZONY&7, przez &6%player%"
- if arg 1 is "powod":
- send "&c[Chat] &6» &7Powod: &6%{R}%"
- command /console [<text>]:
- permission: rtnt.*
- trigger:
- execute console command "%arg 1%"
- on chat:
- if {chat} is false:
- if player doesn't have permission "michma.chat" or "michma.chat.pisz":
- cancel event
- send "&c[Chat] &6» &7Chat jest: &cWYLACZONY &8(Powod: %{r}%)"
Advertisement
Add Comment
Please, Sign In to add comment