options:
insulte: putain, merde, ntm
cmd.mute: /tempmute %player% 5min Fausse infirmation
function report(p: player, c: player, r: text):
loop all players:
if loop-player has permission "mod":
make console execute command "/tellraw loop-player [{""text"":""[sS]"",""bold"":true,""color"":""dark_red"",""clickEvent"":{""action"":""run_command"",""value"":""/ss %{_p}%""}},{""text"":"" "",""bold"":true,""color"":""dark_red""},{""text"":""%{_p}%"",""bold"":true,""color"":""gold""},{""text"":"" a report "",""bold"":true,""color"":""aqua""},{""text"":""%{_c}%"",""bold"":true,""color"":""gold""},{""text"":"" pour "",""bold"":true,""color"":""aqua""},{""text"":""%{_r}%"",""bold"":true,""color"":""gold""}]"
function JsonMessage(player: text, msg: text, tooltip: text, function: text, result: text):
execute console command "/tellraw %{_player}% {""text"":""%{_msg}%"",""clickEvent"":{""action"":""%{_function}%"",""value"":""%{_result}%""},""hoverEvent"":{""action"":""show_text"",""value"":""%{_tooltip}%""}}"
command /report [<player>]:
trigger:
open virtual chest with 3 rows named "&cCheat" to player
format gui slot 0 of player with book named "&cFly" to run function report(player, arg-1, "fly")
format gui slot 1 of player with book named "&cNoFall" to run function report(player, arg-1, "nofall")
format gui slot 2 of player with book named "&cFF/Kill aura" to run function report(report, arg-1, "FF/Kill-Aura")
on chat:
if message contains "{@insulte}":
loop all players:
if loop-player has permission "mod":
send "-------------------------" to loop-player
send "&b%joueur% &f--> &e%message%" to loop-player
make console execute command "/tellraw loop-player [{""text":""[sS]"",""bold"":true,""color":""dark_red"",""clickEvent"":{""action"":""run_command"",""value"":""/ss %{_p}%""}},{""text"":"" "",""bold"":true,""color"":""dark_red""},{""text"":""[FI]"",""bold"":true,""color"":""white"",""clickEvent"":{""action"":""run_command","value":"{@cmd.mute}""}}]"
ca devrait fonctionner :)