changing loop and broadcast
This commit is contained in:
parent
e55f150b5e
commit
938552bda4
3 changed files with 10 additions and 6 deletions
2
chat.sk
2
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 [<player>] [<text>]: # changement de pseudo
|
||||
executable by: players
|
||||
|
|
4
inventories.sk
Normal file
4
inventories.sk
Normal file
|
@ -0,0 +1,4 @@
|
|||
on load:
|
||||
ScriptList("add", script)
|
||||
on unload:
|
||||
ScriptList("remove", script)
|
10
main.sk
10
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 [<player>]: # 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:
|
||||
|
|
Loading…
Reference in a new issue