harmonisation arguments
This commit is contained in:
parent
ce68acf93e
commit
66aa2a583f
1 changed files with 18 additions and 18 deletions
36
main.sk
36
main.sk
|
@ -3,9 +3,9 @@ command skr [<text>]:
|
||||||
description: Reload de skripts
|
description: Reload de skripts
|
||||||
trigger:
|
trigger:
|
||||||
if player is op:
|
if player is op:
|
||||||
if arg 1 is set:
|
if arg-1 is set:
|
||||||
execute player command "sk reload %text-arg%"
|
execute player command "sk reload %arg-1%"
|
||||||
else if arg 1 isn't set:
|
else if arg-1 isn't set:
|
||||||
execute player command "sk reload main" # sk reload all pour tout reload
|
execute player command "sk reload main" # sk reload all pour tout reload
|
||||||
else:
|
else:
|
||||||
send "&4Tu n'as pas la permission d'utiliser cette commande."
|
send "&4Tu n'as pas la permission d'utiliser cette commande."
|
||||||
|
@ -18,9 +18,9 @@ command broadcast [<text>]:
|
||||||
cooldown message: &4Tu dois attendre &l%remaining time% &4pour refaire cette commande !
|
cooldown message: &4Tu dois attendre &l%remaining time% &4pour refaire cette commande !
|
||||||
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%arg 1%"
|
broadcast "&a&lBREAKING NEWS &7» &6%arg-1%"
|
||||||
send all players title "&a&lBREAKING NEWS" with subtitle "&6%arg 1%" for 5 seconds
|
send all players title "&a&lBREAKING NEWS" with subtitle "&6%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:
|
||||||
|
@ -32,12 +32,12 @@ command skull [<offline player>]:
|
||||||
description: Te drop une tête d'un joueur
|
description: Te drop une tête d'un joueur
|
||||||
trigger:
|
trigger:
|
||||||
if player is op:
|
if player is op:
|
||||||
if arg 1 isn't set:
|
if arg-1 isn't set:
|
||||||
give player's skull to player
|
give player's skull to player
|
||||||
send "&7Vous avez reçu la tête de : &6%player%"
|
send "&7Vous avez reçu la tête de : &6%player%"
|
||||||
if arg 1 is set:
|
if arg-1 is set:
|
||||||
give arg's skull to player
|
give arg-1's skull to player
|
||||||
send "&7Vous avez reçu la tête de : &6%arg 1%"
|
send "&7Vous avez reçu la tête de : &6%arg-1%"
|
||||||
else:
|
else:
|
||||||
send "&4Tu n'as pas la permission d'utiliser cette commande."
|
send "&4Tu n'as pas la permission d'utiliser cette commande."
|
||||||
|
|
||||||
|
@ -73,12 +73,12 @@ command sethome [<text>]:
|
||||||
executable by: players
|
executable by: players
|
||||||
description: Défini un point de téléportation pour ta maison
|
description: Défini un point de téléportation pour ta maison
|
||||||
trigger:
|
trigger:
|
||||||
if text-arg isn't set:
|
if arg-1 isn't set:
|
||||||
set {_name} to "maison"
|
set {_name} to "maison"
|
||||||
else:
|
else:
|
||||||
set {_name} to text-arg
|
set {_name} to arg-1
|
||||||
if {home.%player's uuid%.%{_name}%} is set:
|
if {home.%player's uuid%.%{_name}%} is set:
|
||||||
if text-arg isn't set:
|
if arg-1 isn't set:
|
||||||
set {_name} to ""
|
set {_name} to ""
|
||||||
else:
|
else:
|
||||||
set {_name} to "%{_name}% "
|
set {_name} to "%{_name}% "
|
||||||
|
@ -93,10 +93,10 @@ command delhome [<text>]:
|
||||||
executable by: players
|
executable by: players
|
||||||
description: Supprime le tp vers ta maison
|
description: Supprime le tp vers ta maison
|
||||||
trigger:
|
trigger:
|
||||||
if text-arg isn't set:
|
if arg-1 isn't set:
|
||||||
set {_name} to "maison"
|
set {_name} to "maison"
|
||||||
else:
|
else:
|
||||||
set {_name} to text-arg
|
set {_name} to arg-1
|
||||||
if {home.%player's uuid%.%{_name}%} is set:
|
if {home.%player's uuid%.%{_name}%} is set:
|
||||||
remove {_name} from {home.%player's uuid%::*}
|
remove {_name} from {home.%player's uuid%::*}
|
||||||
clear {home.%player's uuid%.%{_name}%}
|
clear {home.%player's uuid%.%{_name}%}
|
||||||
|
@ -109,10 +109,10 @@ command home [<text>]:
|
||||||
executable by: players
|
executable by: players
|
||||||
description: Te téléportes à ta maison
|
description: Te téléportes à ta maison
|
||||||
trigger:
|
trigger:
|
||||||
if text-arg isn't set:
|
if arg-1 isn't set:
|
||||||
set {_name} to "maison"
|
set {_name} to "maison"
|
||||||
else:
|
else:
|
||||||
set {_name} to text-arg
|
set {_name} to arg-1
|
||||||
if {home.%player's uuid%.%{_name}%} is set:
|
if {home.%player's uuid%.%{_name}%} is set:
|
||||||
send "&aTéléportation vers &9%{_name}% &a!"
|
send "&aTéléportation vers &9%{_name}% &a!"
|
||||||
teleport player to {home.%player's uuid%.%{_name}%}
|
teleport player to {home.%player's uuid%.%{_name}%}
|
||||||
|
@ -146,7 +146,7 @@ command rename <string>:
|
||||||
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 arg
|
set {_name} to 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