Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=====MaintenanceMode======#
- # By DrMoose #
- # v1.0 #
- #==========================#
- Options:
- Prefix: &cMaintenance&8 |&r
- No-Perms: &6You dont have permissions to execute this command.
- Maint-Enable: &6You have enabled Maintenance Mode
- Maint-Disable: &6You have disabled Maintenance Mode
- Kick-Command: /kick %player%
- Kick-Prefix: &5&lFactions &8|
- Kick-Message: &cThe server is closed for forced maintenance - Please try rejoining if we are done!.
- Bypass-Perm: maint.mode.bypass
- Command-Perm: maint.mode.toggle
- #Id recommend to NOT touch this part of the skript. Edit at your own risk.
- command /maintenance [<text>]:
- permission: {@Command-Perm}
- permission message: {@Prefix} {@No-Perms}
- aliases: maint, maintm, maintmode
- trigger:
- if arg 1 is not set:
- send "&8&m------&r&8[&4MaintenanceMode&8]&m--------"
- send " "
- send "&6/Maintenance on &7to enable Maintenance."
- send " "
- send "&6/Maintenance off &7to disable Maintenance."
- send " "
- send "&8&m------&r&8[&4MaintenanceMode&8]&m--------"
- if arg 1 is "on":
- set {Maintenance.on} to 1
- send "{@Prefix} {@Maint-Enable}"
- broadcast "&cMaintenance &8| &rMaintenance Mode is now &aON&r."
- if arg 1 is "off":
- set {Maintenance.on} to 0
- send "{@Prefix} {@Maint-Disable}"
- broadcast "&cMaintenance &8| &rMaintenance Mode is now &cOFF&r."
- #Join listeners.
- on join:
- if {Maintenance.on} is 1:
- if player does not have permission "{@Bypass-Perm}":
- wait 1 second
- execute console command "{@Kick-Command} {@Kick-Prefix} {@Kick-Message}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement