From ce68acf93e55078850c2bc91abe822c6f789cc70 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 19 Jun 2021 00:04:17 +0200 Subject: [PATCH] ajouter argument facultatif a gmc et gms --- main.sk | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/main.sk b/main.sk index 54b5dfd..6e67917 100644 --- a/main.sk +++ b/main.sk @@ -159,20 +159,26 @@ command afk: trigger: broadcast "&a%player's name%&c est désormais afk !" -command gmc: +command gmc []: executable by: players description: Change ton mode de jeu en créatif trigger: 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: send "&4Tu n'as pas la permission d'utiliser cette commande." -command gms: +command gms []: executable by: players description: Change ton mode de jeu en spectateur trigger: 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: send "&4Tu n'as pas la permission d'utiliser cette commande."