From b4853ae56fe8efc6b54b6704b1c291789e123425 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 28 Jun 2021 02:39:45 +0200 Subject: [PATCH] adding clearall command (who is the regular clear command) --- main.sk | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/main.sk b/main.sk index 642647e..4108715 100644 --- a/main.sk +++ b/main.sk @@ -450,3 +450,23 @@ command clear []: send "&aTu as clear ton inventaire." else: send {@errorMessage} + +command clearall []: + executable by: players + description: Clear tout l'inventaire d'un joueur. + trigger: + if player is op: + set {_player} to player + set {_arg1} to arg-1 + if player is arg-1: + delete {_arg1} + if arg-1 is set: + set {_player} to arg-1 + clear {_player}'s inventory + if {_arg1} is set: + send "&aTu as clear l'inventaire de %arg-1%&a." + send "&aTon inventaire a été clear par %player%&a." to arg-1 + else: + send "&aTu as clear ton inventaire." + else: + send {@errorMessage}