Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sbchange [<number>] [<text>]:
- trigger:
- if sender does not have permission "scoreboard.sbchange":
- send "&cYou don't have permission to do this."
- stop
- loop all players:
- wipe loop-player's sidebar
- set {_sidebar} to coloured arg 2
- replace all "{rank}" with {skchat.prefix.%loop-player%} in {_sidebar}
- replace all "{online}" with "%amount of players%" in {_sidebar}
- replace all "{ping}" with "%loop-player's ping%" in {_sidebar}
- replace all "{now}" with "%now%" in {_sidebar}
- replace all "{max}" with "%maximum players%" in {_sidebar}
- set score {_sidebar} in sidebar of loop-player to arg 1
- command /sbnamechange [<text>]:
- trigger:
- if sender does not have permission "scoreboard.sbnamechange":
- send "&cYou don't have permission to do this."
- stop
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to coloured arg 1
Advertisement
Add Comment
Please, Sign In to add comment