Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # If need be, remove the 'broadcasts' from the 'on click' and '/afk', and add the variable changing lines to the original building and coding commands.
- # ...also add 'message' color. Not sure what looks good, because I can't see the output.
- # Personal note: 68 lines of code
- on join:
- set {status.%player%} to "Active"
- on quit:
- set {status.%player%} to "Offline"
- on click:
- {status.%player%} is "AFK":
- broadcast "%player% is no longer AFK."
- set {status.%player%} to "Active"
- on chat:
- {status.%player%} is "AFK":
- broadcast "%player% is no longer AFK."
- set {status.%player%} to "Active"
- command /afk
- description: State that you are Away From Keyboard.
- executable by: players
- trigger:
- {status.%player%} is not "AFK":
- broadcast "%player% is now AFK."
- set {status.%player%} to "AFK"
- else:
- broadcast "%player% is no longer AFK."
- set {status.%player%} to "Active"
- command /startbuilding
- description: State that you are about to build.
- permission: status.build
- executable by: players
- trigger:
- {status.%player%} is not "Working":
- broadcast "%player% is now building and may not answer messages."
- set {status.%player%} to "Working"
- else:
- broadcast "%player% is no longer building and may now answer messages."
- set {status.%player%} to "Active"
- command /startcoding
- description: State that you are about to code.
- permission: status.code
- executable by: players
- trigger:
- {status.%player%} is not "Working":
- broadcast "%player% is now coding and may not answer messages."
- set {status.%player%} to "Working"
- else:
- broadcast "%player% is no longer coding and may now answer messages."
- set {status.%player%} to "Active"
- command /activeplayers:
- description: Check the status of all players online.
- trigger:
- loop players
- {status.%loop-player%} is "Active":
- add loop-player to {_activePlayers::*}
- {status.%loop-player%} is "AFK":
- add loop-player to {_afkPlayers::*}
- {status.%loop-player%} is "Working":
- add loop-player to {_workingPlayers::*}
- message "Player Statuses: %number of all players% Players Online"
- message "%size of {_activePlayers::*}% Active: %{_active players::*}%"
- message "%size of {_afkPlayers::*}% AFK: %{_afkPlayers::*}%"
- message "%size of {_workingPlayers::*}% Working: %{_workingPlayers::*}%"
- command /checkstatus <player>:
- description: Check the status of a specific player.
- usage: /playerstatus <player>
- trigger:
- {status.%arg 1%} is set:
- message "%arg 1% is currently %{status.%arg 1%}%."
- else:
- message "That player has not played on this server before."
Advertisement
Add Comment
Please, Sign In to add comment