Advertisement
Guest User

Play_Gaming_Foxy

a guest
Oct 12th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. #=====MaintenanceMode======#
  2. # By DrMoose #
  3. # v1.0 #
  4. #==========================#
  5.  
  6. Options:
  7.  
  8. Prefix: &cMaintenance&8 |&r
  9.  
  10. No-Perms: &6You dont have permissions to execute this command.
  11.  
  12. Maint-Enable: &6You have enabled Maintenance Mode
  13.  
  14. Maint-Disable: &6You have disabled Maintenance Mode
  15.  
  16. Kick-Command: /kick %player%
  17.  
  18. Kick-Prefix: &5&lFactions &8|
  19.  
  20. Kick-Message: &cThe server is closed for forced maintenance - Please try rejoining if we are done!.
  21.  
  22. Bypass-Perm: maint.mode.bypass
  23.  
  24. Command-Perm: maint.mode.toggle
  25.  
  26.  
  27.  
  28. #Id recommend to NOT touch this part of the skript. Edit at your own risk.
  29.  
  30. command /maintenance [<text>]:
  31. permission: {@Command-Perm}
  32. permission message: {@Prefix} {@No-Perms}
  33. aliases: maint, maintm, maintmode
  34. trigger:
  35. if arg 1 is not set:
  36. send "&8&m------&r&8[&4MaintenanceMode&8]&m--------"
  37. send " "
  38. send "&6/Maintenance on &7to enable Maintenance."
  39. send " "
  40. send "&6/Maintenance off &7to disable Maintenance."
  41. send " "
  42. send "&8&m------&r&8[&4MaintenanceMode&8]&m--------"
  43. if arg 1 is "on":
  44. set {Maintenance.on} to 1
  45. send "{@Prefix} {@Maint-Enable}"
  46. broadcast "&cMaintenance &8| &rMaintenance Mode is now &aON&r."
  47. if arg 1 is "off":
  48. set {Maintenance.on} to 0
  49. send "{@Prefix} {@Maint-Disable}"
  50. broadcast "&cMaintenance &8| &rMaintenance Mode is now &cOFF&r."
  51.  
  52. #Join listeners.
  53.  
  54. on join:
  55. if {Maintenance.on} is 1:
  56. if player does not have permission "{@Bypass-Perm}":
  57. wait 1 second
  58. execute console command "{@Kick-Command} {@Kick-Prefix} {@Kick-Message}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement