Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /staffhelp [<text>]:
- trigger:
- if arg 1 is not set:
- if {sfm::%uuid of player%} is set:
- delete {sfm::%uuid of player%}
- send "&8[&c&lStaffHelp&8]: &7Disabled Staff Help chat."
- else:
- set {sfm::%uuid of player%} to true
- send "&8[&a&lStaffHelp&8]: &7Enabled Staff Help chat. Type a message and it will be sent to staff."
- else:
- if arg 1 is "reload":
- if player has permission "staffhelp.reload":
- send "&8[&a&lStaffHelp&8]: &7Reloading the StaffHelp Skript..."
- wait 0.25 seconds
- execute console command "sk reload %script%"
- wait 0.25 seconds
- send "&8[&a&lStaffHelp&8]: &7Reloaded the StaffHelp Skript."
- else:
- send "&8[&a&lStaffHelp&8]: &7No permission."
- else if arg 1 is "toggle":
- if player has permission "staffhelp.toggle":
- if {sfn::%uuid of player%} is set:
- delete {sfn::%uuid of player%}
- send "&8[&c&lStaffHelp&8]: &7Disabled Staff Help notifications."
- else:
- set {sfn::%uuid of player%} to true
- send "&8[&a&lStaffHelp&8]: &7Enabled Staff Help notifications."
- else:
- send "&8[&a&lStaffHelp&8]: &7No permission."
- else if arg 1 is "creators" or "creator" or "developer" or "developers":
- send "&8&m--------------------------"
- send " &a&lStaffHelp"
- send "&7"
- send "&7This Script was created by"
- send "&cBrettPlayMC&7!"
- send "&8&m--------------------------"
- else:
- send "&8[&a&lStaffHelp&8]: &7No permission."
- on chat:
- if {staffhelp::%uuid of player%} is true:
- cancel the event
- send "&8[&a&lSH&8] &7%player% &8>> &7%message%"
- loop all players:
- if player has permission "staffhelp.notifications":
- if {staffhelp::%uuid of player%} is true:
- if {staffhelps::%uuid of loop-player%} is set:
- if "%loop-player%" is not "%player%":
- send "&8[&a&lSH&8] &7%player% &8>> &7%message%" to loop-player
- on load:
- send "&8&m+--------------------+" to console
- send "&7Developed by: &aBrettPlayMC" to console
- send "&7Help from: &cmathhulk" to console
- send "" to console
- send "&7Current Version: &3%{version}%" to console
- send "" to console
- send "&7Commands loaded: &41" to console
- send "&7Listeners loaded: &412" to console
- send "" to console
- send "&eSuccessfully started up!" to console
- send "&8&m+--------------------+" to console
- set {version} to "0.3"
- on unload:
- send "&8&m+--------------------+" to console
- send "&7Developed by: &aFrostedWeFall" to console
- send "&7Help from: &cmathhulk" to console
- send "" to console
- send "&7Current Version: &3%{version}%" to console
- send "" to console
- send "&7Commands loaded: &41" to console
- send "&7Listeners loaded: &412" to console
- send "" to console
- send "&eSuccessfully unloaded! See you soon!" to console
- send "&8&m+--------------------+" to console
- # Math's version: http://hastebin.com/oputuraciy.vhdl#
Advertisement
Add Comment
Please, Sign In to add comment