ajouter argument facultatif a gmc et gms
This commit is contained in:
parent
e4b2a82613
commit
ce68acf93e
1 changed files with 10 additions and 4 deletions
14
main.sk
14
main.sk
|
@ -159,20 +159,26 @@ command afk:
|
||||||
trigger:
|
trigger:
|
||||||
broadcast "&a%player's name%&c est désormais afk !"
|
broadcast "&a%player's name%&c est désormais afk !"
|
||||||
|
|
||||||
command gmc:
|
command gmc [<player>]:
|
||||||
executable by: players
|
executable by: players
|
||||||
description: Change ton mode de jeu en créatif
|
description: Change ton mode de jeu en créatif
|
||||||
trigger:
|
trigger:
|
||||||
if player is op:
|
if player is op:
|
||||||
execute player command "gamemode creative"
|
set {_player} to player
|
||||||
|
if arg-1 is set:
|
||||||
|
set {_player} to arg-1
|
||||||
|
execute {_player} command "gamemode creative"
|
||||||
else:
|
else:
|
||||||
send "&4Tu n'as pas la permission d'utiliser cette commande."
|
send "&4Tu n'as pas la permission d'utiliser cette commande."
|
||||||
|
|
||||||
command gms:
|
command gms [<player>]:
|
||||||
executable by: players
|
executable by: players
|
||||||
description: Change ton mode de jeu en spectateur
|
description: Change ton mode de jeu en spectateur
|
||||||
trigger:
|
trigger:
|
||||||
if player is op:
|
if player is op:
|
||||||
execute player command "gamemode spectator"
|
set {_player} to player
|
||||||
|
if arg-1 is set:
|
||||||
|
set {_player} to arg-1
|
||||||
|
execute {_player} command "gamemode spectator"
|
||||||
else:
|
else:
|
||||||
send "&4Tu n'as pas la permission d'utiliser cette commande."
|
send "&4Tu n'as pas la permission d'utiliser cette commande."
|
||||||
|
|
Loading…
Reference in a new issue