harmonisation

This commit is contained in:
Mylloon 2021-06-28 13:02:44 +02:00
parent b0e99d9fed
commit 6b39291b9f
2 changed files with 11 additions and 11 deletions

16
chat.sk
View file

@ -15,19 +15,19 @@ command nickname [<player>] <text>: # changement de pseudo
set {_playerUUID} to uuid of player
set {_player} to player
set {_playerNAME} to player
if player-arg is set:
set {_playerUUID} to uuid of player-arg
set {_player} to player-arg
if arg-1 is set:
set {_playerUUID} to uuid of arg-1
set {_player} to arg-1
if player is {_player}:
set {_playerNAME} to "vous"
if text-arg is "off":
if arg-2 is "off":
delete {nick.%{_playerUUID}%}
send "&6Tu n'as plus de surnom. (changé par %player%&6)" to {_player}
else:
if length of text-arg is greater than 15:
if length of arg-2 is greater than 15:
send "&4Ce surnom est trop long."
else:
set {nick.%{_playerUUID}%} to colored text-arg
set {nick.%{_playerUUID}%} to colored arg-2
send "&6Ton surnom est désormais &r%{nick.%{_playerUUID}%}%&6. (changé par %{_playerNAME}%&6)" to {_player}
else:
send option("errorMessage")
@ -37,8 +37,8 @@ command msg <player> <text>: # DM
aliases: whisper, w, tell, t
description: Envoie un message privé à un joueur.
trigger:
send "&8[Moi -> %arg-1%&8]&7 %colored text-arg%" to player
send "&8[%player%&8 -> Moi] &b%colored text-arg%" to arg-1
send "&8[Moi -> %arg-1%&8]&7 %colored arg-2%" to player
send "&8[%player%&8 -> Moi] &b%colored arg-2%" to arg-1
set {dmReply.%uuid of player%} to arg-1
set {dmReply.%uuid of arg-1%} to player

View file

@ -17,8 +17,8 @@ command broadcast [<text>]: # annonce
trigger:
if player is op:
if arg-1 is set:
broadcast "&a&lBREAKING NEWS &7» &6%colored text-arg%"
send all players title "&a&lBREAKING NEWS" with subtitle "&6%colored text-arg%" for 5 seconds
broadcast "&a&lBREAKING NEWS &7» &6%colored arg-1%"
send all players title "&a&lBREAKING NEWS" with subtitle "&6%colored arg-1%" for 5 seconds
else:
send "&4Vous n'avez pas spécifier de texte."
else:
@ -76,7 +76,7 @@ command rename <text>: # renomme l'item dans la main du joueur
if player's tool is air:
send "&4Tu dois avoir un item dans la main pour le renommer."
else:
set {_name} to colored text-arg
set {_name} to colored arg-1
replace all "&" with "§" in {_name}
send "&eL'item &r%player's tool%&e est renommé en ""&r%{_name}%&e""."
set the name of the player's tool to "§r%{_name}%"