Kod:
on chat:
if {Color.format.%player%} is not set:
set {Color.format.%player%} to {Color.%player%}
if {Color.%player%} is not set:
set message to "%message%"
else:
set message to "%{Color.%player%}%%{Color.format.%player%}%%message%"
on chat:
if chat message contains "{@name} refresh yourself":
if player have permission "staff.system.*" or "refresh.system":
wait 5 ticks
make console execute command "/skript reload %script%"
on load:
create file "plugins/{@name}/Chathistory.txt"
on chat:
wf "[%now%] <%player%> : %message%" to "plugins/{@name}/Chathistory.txt"
if chat message contains "·":
replace all "·" with "" in chat message
if {chat.slow.enable} is true:
if {slowchat.%player%} was less than 3 seconds ago:
if player doesn't have the permission "slowchat.bypass":
cancel event
send "{@prefix} &4You can't chat that fast!"
stop trigger
else:
set {slowchat.%player%} to now
if {chat.use.enabled} is false:
cancel event
if player has the permission "chat.bypass":
loop all players:
if loop-player has the permission "xkmbg.see":
if player has the permission "staff.xkmbg":
send json "&8[&cSTAFF&8]&r &8[&e%{bounty::%player%}%&8]%player's display name%&8:&r %message%" to loop-player
else:
send json "&8[" then "&6&lX" tooltip "%player%'s History" run "/history get %player%" then "&3&lK" tooltip "Kick %player%" suggest "/kick %player%" then "&2&lM" tooltip "Mute %player%" suggest "/mute %player%" then "&4&lB" tooltip "Ban %player%" suggest "/tempban %player%" then "&5&lT" tooltip "Teleport %player%" run "/tp %player%" then "&8]" then " &8[&e%{bounty::%player%}%&8]%player's display name%&8:&r %message%" to loop-player
else:
send "&8[&e%{bounty::%player%}%&8]%player's display name%&8:&r %message%" to loop-player
stop
else:
cancel event
message "{@prefix} &7Chat is &cdisabled &7now&8.%nl%{@prefix} &7Nobody can use chat&8."
stop
if {donator.scramble.%player%} is true:
cancel event
loop all players:
if loop-player has the permission "xkmbg.see":
if player has the permission "staff.xkmbg":
send json "&8[&cSTAFF&8]&r &8[&e%{donator::scramblepoint.%player%}%&8]%player's display name%&8:&r %message%" to loop-player
else:
send json "&8[" then "&6&lX" tooltip "%player%'s History" run "/history get %player%" then "&3&lK" tooltip "Kick %player%" suggest "/kick %player%" then "&2&lM" tooltip "Mute %player%" suggest "/mute %player%" then "&4&lB" tooltip "Ban %player%" suggest "/tempban %player%" then "&5&lT" tooltip "Teleport %player%" run "/tp %player%" then "&8]" then " &8[&e%{donator::scramblepoint.%player%}%&8]%player's display name%&8:&r %message%" to loop-player
else:
send "&8[&e%{donator::scramblepoint.%player%}%&8]%player's display name%&8:&r %message%" to loop-player
stop
else:
cancel event
loop all players:
if loop-player has the permission "xkmbg.see":
if player has the permission "staff.xkmbg":
send json "&8[&cSTAFF&8]&r &8[&e%{bounty::%player%}%&8]%player's display name%&8:&r %message%" to loop-player
else:
send json "&8[" then "&6&lX" tooltip "%player%'s History" run "/lookup %player%" then "&3&lK" tooltip "Kick %player%" suggest "/kick %player%" then "&2&lM" tooltip "Mute %player%" suggest "/mute %player%" then "&4&lB" tooltip "Ban %player%" suggest "/ban %player%" then "&5&lG" tooltip "Goto %player%" run "/goto %player%" then "&8]" then " &8[&e%{bounty::%player%}%&8]%player's display name%&8:&r %message%" to loop-player
else:
send "&8[&e%{bounty::%player%}%&8]%player's display name%&8:&r %message%" to loop-player
Pastabin linki - http://pastebin.com/raw/qAJu4Y8v
İçinde STAFF XKMB Ve bounty sistemi var , yanlış anlaşılmasın iyi geceler