About Jail
What is it?
A simple and nice utility for admins to punish players.
Usage
Punish minges and bad player's behaviour with this simple plugin!
Command
/jail (playerName/playerID) (duration in seconds) -- Jail specified player for the amount of time
/unjail (playerName/playerID) -- Unjail specified player
/jail.save -- Force save Jail data
Permission
jail.use - Gives player permission for all Jail commands
Features
Once a player gets jailed a cage appears around him, player cannot even avoid it by reconnecting, when the player disconnects the cage automatically disappears and when he connects back, it appears again.
(Configurable) You can choose if the player can take damage or not while jailed
(Configurable) You can set if the cage can take damage or not
(Configurable) You can set if the player is allowed to use commands while jailed
(Configurable) You can set if player should be teleported back into cage whenever he escapes it
API
API Calls public bool IsJailed(ulong playerId) // Returns true if the player is jailed, else returns false API Hooks private void OnPlayerJail(ulong playerId, double time) // Gets called when player gets jailed private void OnPlayerUnjail(ulong playerId) // Gets called when player gets unjailed
Config:
{ "Should player take dmg if jailed?": false, "Should jail cage take dmg?": false, "Should block player's commands when jailed?": true, "Ensure player stays in cage? (Teleports him back if he's outside)": true }
Localization:
{ "Syntax": "Syntax: /jail (playerName/steamID) (timeInSeconds)", "NoPlayer": "Couldn't find that player", "AlreadyJailed": "{0} is already jailed ({1}sec left)", "Unjail": "You have been unjailed", "CantDoJail": "You can't do this while jailed", "SyntaxUnjail": "Syntax: /unjail (playerName/steamID)", "JailCmd": "You have jailed {0} for {1}secs", "UnjailCmd": "You have unjailed {0}", "NotJailed": "{0} is not jailed", "Jail": "You have been jailed for {0}secs" }