moderationIntermediatemc 1.20.x – 1.21.x33 lines
jail system (/jail /unjail)
admin command to jail a player for a duration. auto-releases on timer. teleports to a set jail location.
vanilla Skriptno addons required.
jail-system.sk33 lines
command /setjail: permission: jail.admin trigger: set {jail.location} to location of player send "&aJail location set." to player command /jail <player> <integer> <text>: permission: jail.admin trigger: if {jail.location} is not set: send "&cSet a jail location first with /setjail." to player stop teleport arg-1 to {jail.location} set {jail.until.%uuid of arg-1%} to arg-2 minutes from now set {jail.reason.%uuid of arg-1%} to arg-3 broadcast "&c%arg-1% has been jailed for &e%arg-2% &cminutes. Reason: &f%arg-3%" command /unjail <player>: permission: jail.admin trigger: delete {jail.until.%uuid of arg-1%} delete {jail.reason.%uuid of arg-1%} teleport arg-1 to spawn of world "world" send "&a%arg-1% has been released from jail." to player every 30 seconds: loop all players: if {jail.until.%uuid of loop-player%} is set: if {jail.until.%uuid of loop-player%} is less than now: delete {jail.until.%uuid of loop-player%} teleport loop-player to spawn of world "world" send "&aYou have been released from jail." to loop-player
get it running
jail-system.sk · 33 lines · vanilla Skript- 1
copy or download
grab the .sk file with the buttons up top.
jail-system.sk· ready to drop in - 2
drop it in your scripts folder
save it exactly here on your server — no typos, just copy the path:
…/plugins/Skript/scripts/jail-system.sk - 3
reload in-game
run this in chat or console — your script goes live instantly:
/sk reload jail-system
that's it — your script is live. hop in-game to try it.
/ related templates
more moderation templates
moderation
anti-swear chat filter
blocks chat messages containing banned words. replaces matches with asterisks instead of cancelling the message.
moderationchat ranks (/setrank)
custom chat prefix per player. /setrank <player> <rank>. visible in chat as colored brackets before the name.
moderationmute & warn system
/mute /unmute /warn /warns. warns stack and auto-mute at 3. mutes block chat with a server message.