harmonisation
This commit is contained in:
parent
b0e99d9fed
commit
6b39291b9f
2 changed files with 11 additions and 11 deletions
16
chat.sk
16
chat.sk
|
@ -15,19 +15,19 @@ command nickname [<player>] <text>: # changement de pseudo
|
||||||
set {_playerUUID} to uuid of player
|
set {_playerUUID} to uuid of player
|
||||||
set {_player} to player
|
set {_player} to player
|
||||||
set {_playerNAME} to player
|
set {_playerNAME} to player
|
||||||
if player-arg is set:
|
if arg-1 is set:
|
||||||
set {_playerUUID} to uuid of player-arg
|
set {_playerUUID} to uuid of arg-1
|
||||||
set {_player} to player-arg
|
set {_player} to arg-1
|
||||||
if player is {_player}:
|
if player is {_player}:
|
||||||
set {_playerNAME} to "vous"
|
set {_playerNAME} to "vous"
|
||||||
if text-arg is "off":
|
if arg-2 is "off":
|
||||||
delete {nick.%{_playerUUID}%}
|
delete {nick.%{_playerUUID}%}
|
||||||
send "&6Tu n'as plus de surnom. (changé par %player%&6)" to {_player}
|
send "&6Tu n'as plus de surnom. (changé par %player%&6)" to {_player}
|
||||||
else:
|
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."
|
send "&4Ce surnom est trop long."
|
||||||
else:
|
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}
|
send "&6Ton surnom est désormais &r%{nick.%{_playerUUID}%}%&6. (changé par %{_playerNAME}%&6)" to {_player}
|
||||||
else:
|
else:
|
||||||
send option("errorMessage")
|
send option("errorMessage")
|
||||||
|
@ -37,8 +37,8 @@ command msg <player> <text>: # DM
|
||||||
aliases: whisper, w, tell, t
|
aliases: whisper, w, tell, t
|
||||||
description: Envoie un message privé à un joueur.
|
description: Envoie un message privé à un joueur.
|
||||||
trigger:
|
trigger:
|
||||||
send "&8[Moi -> %arg-1%&8]&7 %colored text-arg%" to player
|
send "&8[Moi -> %arg-1%&8]&7 %colored arg-2%" to player
|
||||||
send "&8[%player%&8 -> Moi] &b%colored text-arg%" to arg-1
|
send "&8[%player%&8 -> Moi] &b%colored arg-2%" to arg-1
|
||||||
set {dmReply.%uuid of player%} to arg-1
|
set {dmReply.%uuid of player%} to arg-1
|
||||||
set {dmReply.%uuid of arg-1%} to player
|
set {dmReply.%uuid of arg-1%} to player
|
||||||
|
|
||||||
|
|
6
main.sk
6
main.sk
|
@ -17,8 +17,8 @@ command broadcast [<text>]: # annonce
|
||||||
trigger:
|
trigger:
|
||||||
if player is op:
|
if player is op:
|
||||||
if arg-1 is set:
|
if arg-1 is set:
|
||||||
broadcast "&a&lBREAKING NEWS &7» &6%colored text-arg%"
|
broadcast "&a&lBREAKING NEWS &7» &6%colored arg-1%"
|
||||||
send all players title "&a&lBREAKING NEWS" with subtitle "&6%colored text-arg%" for 5 seconds
|
send all players title "&a&lBREAKING NEWS" with subtitle "&6%colored arg-1%" for 5 seconds
|
||||||
else:
|
else:
|
||||||
send "&4Vous n'avez pas spécifier de texte."
|
send "&4Vous n'avez pas spécifier de texte."
|
||||||
else:
|
else:
|
||||||
|
@ -76,7 +76,7 @@ command rename <text>: # renomme l'item dans la main du joueur
|
||||||
if player's tool is air:
|
if player's tool is air:
|
||||||
send "&4Tu dois avoir un item dans la main pour le renommer."
|
send "&4Tu dois avoir un item dans la main pour le renommer."
|
||||||
else:
|
else:
|
||||||
set {_name} to colored text-arg
|
set {_name} to colored arg-1
|
||||||
replace all "&" with "§" in {_name}
|
replace all "&" with "§" in {_name}
|
||||||
send "&eL'item &r%player's tool%&e est renommé en ""&r%{_name}%&e""."
|
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}%"
|
set the name of the player's tool to "§r%{_name}%"
|
||||||
|
|
Loading…
Reference in a new issue