This mod allows you put players in jail or release them (in Minetest)
/jail <name> - This teleports the player to the jail.
/unjail <name> - Releases player.
The jail coords: 0, 0, 0 or if you set the coords it will be teleport to the specified. (Use /set jail x, y, z)