Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /setjail [<text>]:
- description: Set the Location of a Jail
- permission: admin.setjail
- usage: /setjail <jail>
- permission message: &cYou Do Not Have Permission To Create A Jail.
- trigger:
- if arg 1 is not set:
- send "You must specify a name for the jail."
- stop
- if arg 1 is set:
- set {jails::%arg 1%} to location of player
- send "Jail %arg 1% has been set."
- stop
- command /deljail [<text>]:
- description: Delete a Jail
- permission: admin.deljail
- usage: /deljail(remjail|rmjail) <jail>
- permission message: &cYou Do Not Have Permission To Delete Jails.
- aliases: /remjail, /rmjail
- trigger:
- if arg 1 is not set:
- send "You must specify a jail to delete."
- stop
- if arg 1 is set:
- loop {jails::*}:
- if {jails::%loop-index%} is set:
- clear {jails::%arg 1%}
- send "Jail %arg 1% has been removed."
- stop
- else:
- send "%arg 1% is not a jail."
- stop
- command /jails:
- description: List all Jails
- permission: list.jails
- usage: /jails
- permission message: &cYou Do Not Have Permission To See The Jails.
- trigger:
- loop {jails::*}:
- add loop-index to {_jl::*}
- send "The current jails are: %{_jl::*}%"
- stop
- command /togglejail [<player>] [<text>]:
- description: Toggle a Player's Jail Status
- permission: admin.togglejail
- usage: /togglejail(togglejail|unjail|jail) <player> [jail]
- permission message: &cYou Do Not Have Permission To Jail.
- aliases: /unjail, /jail
- trigger:
- if arg 1 is not set:
- send "You must specify a player to unjail/jail."
- stop
- if arg 1 is set:
- if arg 2 is not set:
- if {in.jail::%uuid of arg 1%} is set:
- teleport arg 1 to {beforejail::%uuid of arg 1%}
- clear {beforejail::%uuid of arg 1%}
- clear {in.jail::%uuid of arg 1%}
- send "You are no longer jailed." to arg 1
- send "%arg 1% is no longer jailed."
- stop
- else:
- send "You must specify a jail in which %arg 1% should be kept."
- stop
- if arg 2 is set:
- if {jails::%arg 2%} is set:
- set {beforejail::%uuid of arg 1%} to location of arg 1
- teleport player to {jails::%arg 2%}
- set {in.jail::%uuid of arg 1%} to 1
- send "You are now jailed." to arg 1
- send "%arg 1% is now jailed."
- stop
- else:
- send "%arg 2% is not a jail."
- stop
- on damage:
- if {in.jail::%uuid of attacker%} is set:
- cancel the event
- else if {in.jail::%uuid of victim%} is set:
- cancel the event
- on any move:
- if {in.jail::%uuid of player%} is set:
- cancel the event
- stop
- on mine:
- if {in.jail::%uuid of player%} is set:
- cancel the event
- on chat:
- if {in.jail::%uuid of player%} is set:
- send "You cannot speak while in jail."
- cancel the event
- stop
- on click:
- if {in.jail::%uuid of player%} is set:
- cancel the event
- stop
- on teleport:
- if {in.jail::%uuid of player%} is set:
- cancel the event
- on command:
- if {in.jail::%uuid of player%} is set:
- cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement