diff --git a/chat.sk b/chat.sk index 01c46da..eac5cce 100644 --- a/chat.sk +++ b/chat.sk @@ -6,7 +6,7 @@ on unload: on chat: # chat cancel event set {_player} to userOrNick(player) - broadcast "%{_player}%&r &8➡&r %colored message%" in world of player + broadcast "&8[%gamemode of player%&8]&r %{_player}%&r &8➡&r %colored message%" in all worlds command nickname [] []: # changement de pseudo executable by: players diff --git a/inventories.sk b/inventories.sk new file mode 100644 index 0000000..437bb2b --- /dev/null +++ b/inventories.sk @@ -0,0 +1,4 @@ +on load: + ScriptList("add", script) +on unload: + ScriptList("remove", script) diff --git a/main.sk b/main.sk index 6dd4499..37c4a74 100644 --- a/main.sk +++ b/main.sk @@ -58,9 +58,9 @@ command clearchat: # supprime l'historique du tchat if player is op: set {_player} to userOrNick(player) loop 98 times: - broadcast " " in world of player - broadcast "&cLe Chat a été clear par &e%{_player}%&c." in world of player - broadcast " " in world of player + broadcast " " in all worlds + broadcast "&cLe Chat a été clear par &e%{_player}%&c." in all worlds + broadcast " " in all worlds else: cancel command cooldown send option("errorMessage") @@ -88,7 +88,7 @@ command afk: # annonce d'afk description: Annonce que tu vas afk. trigger: set {_player} to userOrNick(player) - broadcast "&a%{_player}%&c est désormais afk !" in world of player + broadcast "&a%{_player}%&c est désormais afk !" in all worlds command gmc []: # met un joueur en créatif executable by: players @@ -231,7 +231,7 @@ on server list ping: # motd if max players count > {_playerCount}: set max players count to (number of all players + 1) -every 1 second in "world": +every second: loop all players: # affiche le block proche de toi if {blockNear.%uuid of loop-player%} is true: