Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {jailed::%player%} = false
- command /setjail:
- permission: skript.setjail
- trigger:
- send "&7&oYou have set the jail location."
- set {jailloc} to player's location
- command /jail [<offlineplayer>]:
- permission: skript.jail
- permission message: "&c&l[!] &cPlease use: /jail (player)"
- trigger:
- if arg-1 is not set:
- send "&7&oPlease put in a player to send to jail!"
- if arg-1 is set:
- wait 3 ticks
- open chest with 3 rows named "&6&lJail &8- &7%arg-1%" to player
- format slot 13 of player with paper named "&eJail." with lore "&7", "&7&oOpen a GUI that allows u to set time." and "&7" to close then run [execute player command "jailtime %arg 1%"]
- format slot 1 of player with black stained glass pane named "&7" to close
- format slot 2 of player with black stained glass pane named "&7" to close
- format slot 3 of player with black stained glass pane named "&7" to close
- format slot 4 of player with black stained glass pane named "&7" to close
- format slot 5 of player with black stained glass pane named "&7" to close
- format slot 6 of player with black stained glass pane named "&7" to close
- format slot 7 of player with black stained glass pane named "&7" to close
- format slot 8 of player with black stained glass pane named "&7" to close
- format slot 9 of player with black stained glass pane named "&7" to close
- format slot 10 of player with black stained glass pane named "&7" to close
- format slot 11 of player with black stained glass pane named "&7" to close
- format slot 12 of player with black stained glass pane named "&7" to close
- format slot 14 of player with black stained glass pane named "&7" to close
- format slot 15 of player with black stained glass pane named "&7" to close
- format slot 16 of player with black stained glass pane named "&7" to close
- format slot 17 of player with black stained glass pane named "&7" to close
- format slot 18 of player with black stained glass pane named "&7" to close
- format slot 19 of player with black stained glass pane named "&7" to close
- format slot 20 of player with black stained glass pane named "&7" to close
- format slot 21 of player with black stained glass pane named "&7" to close
- format slot 22 of player with black stained glass pane named "&7" to close
- format slot 23 of player with black stained glass pane named "&7" to close
- format slot 24 of player with black stained glass pane named "&7" to close
- format slot 25 of player with black stained glass pane named "&7" to close
- format slot 0 of player with black stained glass pane named "&7" to close
- format slot 26 of player with black stained glass pane named "&7" to close
- command /jailtime [<offlineplayer>]:
- permission: skript.jail
- permission message: "&c&l[!] &cPlease use: /jail (player)"
- trigger:
- if arg-1 is not set:
- send "&7&oPlease put in a player to send to jail!"
- if arg-1 is set:
- wait 3 ticks
- open chest with 3 rows named "&6&lJail &eTime &8- &7%arg-1%" to player
- format slot 10 of player with green concrete named "&eCaught in any Vault." with lore "&7", "&7This will jail the player for &64 minutes." and "&7" to close then run [execute player command "vault %arg 1%"]
- format slot 12 of player with green concrete named "&eAttacking Officer, player's." with lore "&7", "&7This will jail the player for &62 minutes." and "&7" to close then run [execute player command "punchs %arg 1%"]
- format slot 14 of player with green concrete named "&eCaught in illegal rooms." with lore "&7", "&7This will jail the player for &63 minutes." and "&7" to close then run [execute player command "rooms %arg 1%"]
- format slot 16 of player with green concrete named "&eCaught with Contraband." with lore "&7", "&7This will jail the player for &64 minutes." and "&7" to close then run [execute player command "contraband %arg 1%"]
- format slot 1 of player with black stained glass pane named "&7" to close
- format slot 13 of player with black stained glass pane named "&7" to close
- format slot 2 of player with black stained glass pane named "&7" to close
- format slot 3 of player with black stained glass pane named "&7" to close
- format slot 4 of player with black stained glass pane named "&7" to close
- format slot 5 of player with black stained glass pane named "&7" to close
- format slot 6 of player with black stained glass pane named "&7" to close
- format slot 7 of player with black stained glass pane named "&7" to close
- format slot 8 of player with black stained glass pane named "&7" to close
- format slot 9 of player with black stained glass pane named "&7" to close
- format slot 15 of player with black stained glass pane named "&7" to close
- format slot 11 of player with black stained glass pane named "&7" to close
- format slot 15 of player with black stained glass pane named "&7" to close
- format slot 17 of player with black stained glass pane named "&7" to close
- format slot 18 of player with black stained glass pane named "&7" to close
- format slot 19 of player with black stained glass pane named "&7" to close
- format slot 20 of player with black stained glass pane named "&7" to close
- format slot 21 of player with black stained glass pane named "&7" to close
- format slot 22 of player with black stained glass pane named "&7" to close
- format slot 23 of player with black stained glass pane named "&7" to close
- format slot 24 of player with black stained glass pane named "&7" to close
- format slot 25 of player with black stained glass pane named "&7" to close
- format slot 0 of player with black stained glass pane named "&7" to close
- format slot 26 of player with black stained glass pane named "&7" to close
- on command:
- if {jailed::%player%} is true:
- cancel event
- command /contraband [<offlineplayer>]:
- permission: skript.jail
- permission message: "&c&l[!] &cPlease use: /jail (player)"
- trigger:
- if arg-1 is not set:
- send "fail"
- if arg-1 is set:
- send "&7&oYou have been send to jail for &6Having a Contraband. &e( 4 minutes. )" to arg-1
- send "&7&oYou have jailed &e%arg-1% &7&ofor &6Having a Contraband. &e( 4 minutes. )"
- teleport arg-1 to {jailloc}
- set {jailed::%arg-1%} to true
- wait 4 minutes
- set {jailed::%arg-1%} to false
- send "&7&oYou are no longer in jail. &e/spawn" to arg-1
- command /rooms [<offlineplayer>]:
- permission: skript.jail
- permission message: "&c&l[!] &cPlease use: /jail (player)"
- trigger:
- if arg-1 is not set:
- send "fail"
- if arg-1 is set:
- send "&7&oYou have been send to jail for &6Caught in illegal area. &e( 3 minutes. )" to arg-1
- send "&7&oYou have jailed &e%arg-1% &7&ofor &6&6Caught in illegal area. &e( 3 minutes. )"
- teleport arg-1 to {jailloc}
- set {jailed::%arg-1%} to true
- wait 3 minutes
- set {jailed::%arg-1%} to false
- send "&7&oYou are no longer in jail. &e/spawn" to arg-1
- command /punchs [<offlineplayer>]:
- permission: skript.jail
- permission message: "&c&l[!] &cPlease use: /jail (player)"
- trigger:
- if arg-1 is not set:
- send "fail"
- if arg-1 is set:
- send "&7&oYou have been send to jail for &6Punching Officer, player's. &e( 2 minutes. )" to arg-1
- send "&7&oYou have jailed &e%arg-1% &7&ofor &6Punching Officer, player's. &e( 2 minutes. )"
- teleport arg-1 to {jailloc}
- set {jailed::%arg-1%} to true
- wait 2 minutes
- set {jailed::%arg-1%} to false
- send "&7&oYou are no longer in jail. &e/spawn" to arg-1
- command /vault [<offlineplayer>]:
- permission: skript.jail
- permission message: "&c&l[!] &cPlease use: /jail (player)"
- trigger:
- if arg-1 is not set:
- send "fail"
- if arg-1 is set:
- send "&7&oYou have been send to jail for &6Caught in any Vault. &e( 4 minutes. )" to arg-1
- send "&7&oYou have jailed &e%arg-1% &7&ofor &6Caught in any Vault. &e( 4 minutes. )"
- teleport arg-1 to {jailloc}
- set {jailed::%arg-1%} to true
- wait 4 minutes
- set {jailed::%arg-1%} to false
- send "&7&oYou are no longer in jail. &e/spawn" to arg-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement