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
|
on chat: # chat
|
||||||
cancel event
|
cancel event
|
||||||
set {_player} to userOrNick(player)
|
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
|
command nickname [<player>] [<text>]: # changement de pseudo
|
||||||
executable by: players
|
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:
|
if player is op:
|
||||||
set {_player} to userOrNick(player)
|
set {_player} to userOrNick(player)
|
||||||
loop 98 times:
|
loop 98 times:
|
||||||
broadcast " " in world of player
|
broadcast " " in all worlds
|
||||||
broadcast "&cLe Chat a été clear par &e%{_player}%&c." in world of player
|
broadcast "&cLe Chat a été clear par &e%{_player}%&c." in all worlds
|
||||||
broadcast " " in world of player
|
broadcast " " in all worlds
|
||||||
else:
|
else:
|
||||||
cancel command cooldown
|
cancel command cooldown
|
||||||
send option("errorMessage")
|
send option("errorMessage")
|
||||||
|
@ -88,7 +88,7 @@ command afk: # annonce d'afk
|
||||||
description: Annonce que tu vas afk.
|
description: Annonce que tu vas afk.
|
||||||
trigger:
|
trigger:
|
||||||
set {_player} to userOrNick(player)
|
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
|
command gmc [<player>]: # met un joueur en créatif
|
||||||
executable by: players
|
executable by: players
|
||||||
|
@ -231,7 +231,7 @@ on server list ping: # motd
|
||||||
if max players count > {_playerCount}:
|
if max players count > {_playerCount}:
|
||||||
set max players count to (number of all players + 1)
|
set max players count to (number of all players + 1)
|
||||||
|
|
||||||
every 1 second in "world":
|
every second:
|
||||||
loop all players:
|
loop all players:
|
||||||
# affiche le block proche de toi
|
# affiche le block proche de toi
|
||||||
if {blockNear.%uuid of loop-player%} is true:
|
if {blockNear.%uuid of loop-player%} is true:
|
||||||
|
|
Loading…
Reference in a new issue