Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /vexen [<text>] [<text.]:
- permission: admin
- permission message: {@perm.admin}
- trigger:
- if arg-1 is not set:
- send "{@prefix} Hi? You need to specify a variable."
- send "&c"
- send "{@prefix} /vexen refresh - &cAdministrator &7- Refreshes all systems."
- send "{@prefix} /vexen reload [script name, ex, CustomItems or KonoStandoPowa] - &cAdministrator &7- Restarts a script."
- send "{@prefix} /vexen enable [script name]"
- send "{@prefix} /vexen disable [script name]"
- send "{@prefix} /vexen lock - locks/unlocks the server"
- send "&c"
- else if arg-1 is set:
- if arg-1 is "lock":
- if {vexen.lock} is true:
- set {vexen.lock} to false
- set {vexen.lock.user} to "none"
- broadcast "{@prefix} &c%player% &7unlocked the server."
- if {vexen.lock} is false:
- set {vexen.lock} to true
- set {vexen.lock.user} to "%player%"
- broadcast "{@prefix} &c%player% &7locked the server."
- loop all players:
- loop-player does not have permission "mod"
- kick loop-player due to "&cServer has been locked by %player%."
- if arg-1 is "refresh":
- send "{@prefix} Restarting."
- execute console command "/skript reload %script%"
- else if arg-1 is "reload":
- if arg-2 is set:
- send "{@prefix} Reloading %arg-2%."
- execute console command "/skript reload %arg-2%"
- else:
- send "{@prefix} Please specify something to reload."
- else if arg-1 is "enable":
- if arg-2 is set:
- send "{@prefix} Enabling %arg-2%."
- execute console command "/skript enable %arg-2%"
- else:
- send "{@prefix} Please specify a script to enable."
- else if arg-1 is "disable":
- if arg-2 is set:
- send "{@prefix} Disabling %arg-2%."
- execute console command "/skript disable %arg-2%"
- else:
- send "{@prefix} Please specify a script to disable."
- else:
- send "{@prefix} Argument not recognized."
- on connect:
- if {vexen.lock} is true:
- player does not have permission "mod"
- kick the player due to "&cServer has been locked by {vexen.lock.user}."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement