Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Obam-General/staff.sk
Original file line number Diff line number Diff line change
@@ -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}%"