#THX, FOR DOWNLOADING THIS SKIRPT!
#SKIRPT BY: ICHIRO & TSUKASA
#PLEASE, Don't Take Other People's
options:
pr: &c&lMAINTENANCE
pm: &c&lSORRY! &7You don't have permission
command /maintenance [<text>] [<player>]:
permission: servers.maintenance
permission message: {@pr} {@pm}
aliases: /m, /maint
trigger:
if arg-1 is not set:
send "{@pr} &7/maintenance <ON/OFF/WHITELIST>"
stop
if arg-2 is not set:
send "{@pr} &7/maintenance <ON/OFF/WHITELIST>"
stop
if arg-1 is set:
if arg-1 is "ON" or "on":
set {maintenance} to true
send "{@pr} &7Maintenance Is Active"
stop
if arg-1 is "OFF" or "off":
set {maintenance} to false
send "{@pr} &7Maintenance Is Deactive"
stop
if arg-1 is "WHITELIST" or "whitelist":
if arg-2 is not set:
send "{@pr} &7/maintenance <ON/OFF/WHITELIST>"
stop
if arg-2 is set:
execute console command "lp user %player% permission set servers.maintenance"
send "{@pr} &7%player% has been whitelisted!"
stop
on join:
if {maintenance} is true:
if player doesn't have permission "servers.maintenance":
kick the player due to "{@pr} &7You Has Been Kicked&r\n&r &fReason: &fMAINTENANCE"
else:
send "{@Prefix} &c&l&nMAINTENANCE IS ACTIVE!"
stop