Jailed v1
#1
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
Reply
Thanks given by:
#2
Huh, will the configuration files generate on first start? I see that it doesn't do anything if Inifile:ReadFile is false.
Reply
Thanks given by:
#3
Configuration files should generate at first start.
Reply
Thanks given by:
#4
Even if the ReadFile() function is false, when you use GetValueSet and then WriteFile() it should generate an .Ini file.
Reply
Thanks given by:
#5
Alright, thanks Smile
Reply
Thanks given by:
#6
I'm currently updating the plugin to support latest API, timed jails and a better storage for players and settings.
Reply
Thanks given by:
#7
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.
Reply
Thanks given by:
#8
This is easy to fix. Simply replace GetLocalDirectory with GetLocalFolder.
Reply
Thanks given by:
#9
Please use Essentials instead
Reply
Thanks given by:




Users browsing this thread: 8 Guest(s)