Cuberite Forum

Full Version: Jailed v1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is a jails plugin, it's like essentials jails system

Features:
- Jail players
- Unjail players
- Configurable hooks for jailed players

Commands and permissions
/jail jail.jail
/setwarp jail.setjail
/delwarp jail.deljail
/warps jail.listjail

Default settings (in settings.ini)
[Enabled]
Chat=true
Commands=false
Dig=true
Place=true

Jailed players can do actions set to true

If you use Login, it's recommended to load Login before Jailed to avoid problems with OnExecuteCommand hook.

Download: https://github.com/tonibm19/Jailed/archive/master.zip
Github: https://github.com/tonibm19/Jailed
Huh, will the configuration files generate on first start? I see that it doesn't do anything if Inifile:ReadFile is false.
Configuration files should generate at first start.
Even if the ReadFile() function is false, when you use GetValueSet and then WriteFile() it should generate an .Ini file.
Alright, thanks Smile
I'm currently updating the plugin to support latest API, timed jails and a better storage for players and settings.
Some warnings:

Warning: [23:06:09] cPlugin:GetLocalDirectory() is obsolete, use cPlugin:GetLocalFolder() instead.
Warning: [23:06:09] Stack trace:
Warning: [23:06:09] [C](-1): GetLocalDirectory
Warning: [23:06:09] Plugins/Jailed/main.lua(19): (no name)
Warning: [23:06:09] Stack trace end
Log: [23:06:09] Initialised Jailed v.1
======================================

When a player has no UUID - player not found.
This is easy to fix. Simply replace GetLocalDirectory with GetLocalFolder.
Please use Essentials instead