From cda7d7e107763fff7668a681f01c70e35eea62f0 Mon Sep 17 00:00:00 2001 From: Jinkers Date: Thu, 24 Apr 2014 15:33:08 +1000 Subject: [PATCH] Create staff.sk --- Obam-General/staff.sk | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Obam-General/staff.sk diff --git a/Obam-General/staff.sk b/Obam-General/staff.sk new file mode 100644 index 0000000..d4019b7 --- /dev/null +++ b/Obam-General/staff.sk @@ -0,0 +1,29 @@ +#------------------------------------ +# Staff Online Command +#------------------------------------ + +command /staff: + description: Tells you the current Staff Online + usage: /staff + executable by: player + trigger: + loop all players: + loop-player has permission "obam.mod" + add loop-player to {_staffonline::mod} + + loop all players: + loop-player has permission "obam.admin" + add loop-player to {_staffonline::admin} + + size of {_staffonline::*} is 0: + send "&f----&6Current Staff Online&F----" + send " " + send "&4There is currently no Staff online." + + size of {_staffonline::*} is greater than 0: + + send "&f----&6Current Staff Online&F----" + send " " + send "&aModerators: %{_staffonline::mod}%" + send " " + send "&5Administrators: %{_staffonline::admin}%"