KarmicJail
KarmicJail
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
About
This plugin is a fork of imjake9's SimpleJail plugin. It was made because our server needed a new Jail system to replace the defective one that was implemented in the past. While other jail systems were simple and lightweight, they were not nearly as featured as we were used to or wouldn't support our scope. For instance, at the time we had about 190 old entries of jailed players in a MySQL database and we wanted to transfer those over to whatever new system we woud use. Thus, KarmicJail was made, for Mine-RP.
Features
- Simple, single jail system.
- Uses MySQL / SQLite database for storage.
- Look up and page through current jail records.
- Complete history of every jailed player.
- Records each instance a player gets jailed, with all attached info, such as who jailed them, the reason, date, etc.
- Can add custom comments to any player's record.
- Optional permission group modification
- Optional jailed player event / interaction denial
- Persistent jail time. Players need to be online to actually serve their time in jail.
- Quick alias to commands
- Name auto-complete for online players.
- Auto-correct name capitalization for online and offline players, so long as they have visited the server at least once.
- Ex/ Try to jail player "HaXXoR", the following command would work: /j haxxor
- Offline player support.
- Optional inventory management of jailed players.
- Clear the jailed player's inventory so that they don't have access to it in jail.
- View and modify the inventory of a jailed player.
- Return inventory (with modifications if any) to jailed player on release (or not :P).
- Jail multiple people in one command.
- Teleport to the last known location of any player to ever visit the server.
- Warp players to the jail location without "jailing" them.
- Custom jail event for other plugins.
This plugin depends on Vault.
Also requires SQLibrary for SQLite and MySQL.
Commands and Permissions
Configuration
Custom events for plugin developers
TODO:
- ??? - Vote/comment and shape what the future update for the plugin should be.
Maven
This plugin supports Maven. Just add our repository:
<repository> <id>dakani</id> <name>Dakani Nexus Repo</name> <url>http://repo.dakanilabs.com/content/repositories/public</url> </repository>
And add KarmicJail as a dependency:
<dependency> <groupId>com.mitsugaru</groupId> <artifactId>KarmicJail</artifactId> <version>0.443</version> </dependency>
Trello Dev board
Visit the Trello board to see the current todo list for all projects.
You can comment and vote on any of the topics there.
All changes on the Trello board are in real-time.
If this plugin has helped you, please consider donating.
<<reply 591551>>
Works perfect again. Spaces and åäö are all there :)
Update: but the timer has started ticking again even if the player is offline.
Update #2: The problem doesn't seem to be consistant. Some of the players are counting down offline but not all. If I update the time with /jailtime on a player that counts down offline the timer stops.
@watarimon
Try this version here: https://github.com/Mitsugaru/KarmicJail/downloads
Let me know if it works out or not.
@Mitsugaru
Great, thank you for your fast reply! :)
@watarimon
Working on it right now. EDIT: in the mean team you can use the previous release.
@d3aThW1nG
For time, it is an integer only, and the units is minutes. So, if you put in:
/j player 1
That will cause the player to be in jail for 1 minute.
@Mitsugaru
Hello again!
We've tried to put players in jail but can't figure out what the correct syntax for the jail time is. When we type "/jail Player 10s" it looks for the player named 10s, same for 10sec and everything we've tried. What is the correct syntax?
Not sure if it did this before but it removes all spaces in reason when I jail someone. "Stop griefing" becomes "Stopgriefing". Also it can't handle swedish letters åäö.
Thanks for quick response, problem solved.
@d3aThW1nG
Are you talking about importing from the existing SQLite database to MySQL?
In the config, set your info for MySQL access and also set mysql.import to true. When you run, it should transfer from SQLite to MySQL.
Sorry for not updating the page here explaining the config. I'll get around to it.
@Mitsugaru
To what corresponds the line import for the MySql base ?
@watarimon
Sorry for the late reply.
Found your issue. I'm uploading version 0.352 to BukkitDev.
You may also grab it immediately from GitHub if its not available: https://github.com/Mitsugaru/KarmicJail/downloads
When someone gets unjailed either by serving their time or by /unjail this shows up in console
14:36:17 [WARNING] [KarmicJail] [KarmicJail][MySQL] Error at SQL Query: Data truncated for column 'time' at row 1
@watarimon
That is good to hear. Sorry for the initial issues caused by previous releases.
works perfect again :)
I removed the jail.db and set the config to use a clean MySQL table, loads fine. Haven't had the chance to jail anyone yet, will let you know how that works.
@watarimon
In the config, replace the version to 0.29, let it auto-update again and it should update correctly this time around.
2012-02-21 18:47:52 [INFO] [KarmicJail] Loading KarmicJail v0.34. 2012-02-21 18:47:52 [INFO] [KarmicJail] Created jailed table 2012-02-21 18:47:52 [VARNING] [KarmicJail] [KarmicJail][SQLite] Error at SQL Query: [SQLITE_ERROR] SQL error or missing database ( no such table: kj_jailed) 2012-02-21 18:47:52 [ALLVARLIG] Error occurred while enabling KarmicJail v0.34 (Is it up to date?): null
@watarimon
o.O well... thats another typo down.
I'll upload version 0.34, which should fix a lot of issues regarding this series of versions.
If you don't mind, see if this fixes the MySQL table issue correctly (it really should be kj). You can just have it recreate the MySQL table and then import from the SQLite (if the SQLite got updated to the new name scheme).
Version 0.34 fixes the teleport and list issues. I've uploaded it on GitHub as well: https://github.com/Mitsugaru/KarmicJail/downloads
The config.yml says tablePrefix: kj_ but the created table is called ks_jailed and I can't edit the table data. "Error: `minecraft`.`ks_jailed`: table data is not editable because there is no primary key defined for the table"
Works fine for any other plugin table.
I'll switch back to SQLite and check the MySQL table :)
@watarimon
Ack, you replied while I was editing so IDK if you saw the second part:
"Also, can you check the table for me? See if it was created and if the users are in there with the correct status."