Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- perm: sky.staff # a permission which all staff have, used in the "Staff Online" area of the scoreboard.
- every 3 seconds:
- execute console command "/staffonline"
- loop all players:
- if {scoreboard.%uuid of loop-player%} is not set:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&4&lDENIAL &8| &c%number of all players%"
- set score "&4&lPLAYER" in sidebar of loop-player to 69
- set score "&8- &cUser: &7%loop-player%" in sidebar of loop-player to 68
- set score "&8- &cRank: &7%loop-player's group%" in sidebar of loop-player to 67
- add amount of coal in loop-player's inventory to {_n}
- add amount of iron ingot in loop-player's inventory to {_n}
- add amount of redstone in loop-player's inventory to {_n}
- add amount of gold ingot in loop-player's inventory to {_n}
- add amount of diamond in loop-player's inventory to {_n}
- add amount of emerald in loop-player's inventory to {_n}
- if {_n} > 0:
- set score "&4&lORES &8| &7(%{_n}%)" in sidebar of loop-player to 66
- if amount of coal in loop-player's inventory > 0:
- set score "&8- &8Coal &7%amount of coal in loop-player's inventory%" in sidebar of loop-player to 65
- if amount of iron ingot in loop-player's inventory > 0:
- set score "&8- &fIron &7%amount of iron ingot in loop-player's inventory%" in sidebar of loop-player to 64
- if amount of redstone in loop-player's inventory > 0:
- set score "&8- &cRedstone &7%amount of redstone in loop-player's inventory%" in sidebar of loop-player to 63
- if amount of gold ingot in loop-player's inventory > 0:
- set score "&8- &eGold &7%amount of gold ingot in loop-player's inventory%" in sidebar of loop-player to 62
- if amount of diamond in loop-player's inventory > 0:
- set score "&8- &bDiamond &7%amount of diamond in loop-player's inventory%" in sidebar of loop-player to 61
- if amount of emerald in loop-player's inventory > 0:
- set score "&8- &aEmerald &7%amount of emerald in loop-player's inventory%" in sidebar of loop-player to 60
- set score "&4&lSERVER" in sidebar of loop-player to 59
- set score "&8- &cStaff Online: &7%{staff}%" in sidebar of loop-player to 58
- set score "&8- &cIP: &4DENIAL&7.minehut.gg" in sidebar of loop-player to 57
- command /sc:
- aliases: /tsc, /t, /ts, /togglescoreboard
- trigger:
- if {scoreboard.%uuid of player%} is not set:
- set {scoreboard.%uuid of player%} to true
- send "&4&lDENIAL &8| &7Your scoreboard is now &c&noff&7!"
- wipe player's sidebar
- else:
- delete {scoreboard.%uuid of player%}
- send "&4&lDENIAL &8| &7Your scoreboard is now &a&non&7!"
- command /staffonline:
- permission: *
- permission message: &cThis command is used only by console! Ignore this command!
- trigger:
- set {staff} to 0
- loop all players:
- if loop-player has permission "{@perm}":
- add 1 to {staff}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement