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.
@JAG100
Yeah... About that... Managing permission groups is annoying. If I were to do a rewrite, I'd end up dropping group management entirely as it's too much maintenance. Consider that not all plugins handle groups the same way, even with Vault acting as a common interface there are nuances to each individual plugin.
@siyman4
Same as above, group modification is broken, had been, and I'd sooner remove it than fix it. You are currently better of disabling group changing through the config.
@Mitsugaru - Latest version of Vault made some changes that will affect how the plugin updates Ranks in PermissionsEX. Actually, it completely screws things up. I had to downgrade Vault to fix my problem.
The developer states, "They (Plugins affected) weren't working to begin with, it just happened that they may have been programming around a small bug in the PEX implementation, or because of the bug they were unaffected. They will need to be fixed either way. If plugin authors are confused they should read the documentation: https://github.com/MilkBowl/Vault/blob/master/src/net/milkbowl/vault/permission/Permission.java#L520 It explicitly states if a world is not specified the players current world is used."
Can you please update your plugin so that this issue is resolved? Otherwise, the global rank is ignored by your plugin and a world specific rank is applied creating duplication and other nasty consequences.
If you could add a Bail optiom, I would love that. So when we jail someone, we can set their bail, they can earn the money, and do /kj bail and be let free, regardless of time.
Thanks
@grasty
What permission system were you using? Version of vault and Bukkit?
@JAG100
I tried it on our test server, even if i give a group the KarmicJail.* permission, it still tells me i dont have permission. I have tried giving individual users the permission, groups, etc. I was OP and it still didnt work. just keeps saying your missing KarmicJail.setjail or KarmicJail.jail or whatever. I even tried giving those permissions instead of the .* permission and it still says i dont have it.
@Mitsugaru - Oh that is encouraging to hear! Thank you. I'll give you feedback once a few plugin dependencies are updated sufficient for me to try running 1.7 on my servers.
@JAG100
Well, I just ran a build and it appears to have no compile errors. So, in theory, I shouldn't need to upload a new artifact when there's been no code change. Haven't done full testing though, so, YMMV.
@Mitsugaru - Any plans to update for 1.7 sir?
@Mitsugaru - I was only trying to switch to MYSQL because we were having some server instability and suspected based on the Pastebin errors that there was something happening with Karmic Jail. Epic had sent you the Pastebin files below and you said there may be something wrong with our environment and it seemed like you were suggesting we should be using MYSQL over the default SQLite. Do you have any ideas why we've been getting the errors that Epic posted back in July?
@JAG100
I might be doing something wrong with SQLibrary in my SQLite -> MySQL method. No idea when I'll get around to checking it.
Was it something I said? :-)
@Mitsugaru
Thank you so much! I'm going out of my mind. LOL
That removed the one error but still having some issues. Any ideas?
http://pastebin.com/zduHVdFF
@JAG100
There was an error with the import method, which gives the error when trying to copy entries from SQLite to MySQL. Try this version and tell me the results.
Build 13
@Mitsugaru - I tried switch to MYSQL but have been getting this error when bringing up the server. http://pastebin.com/QWEjVU2Z
Any idea what would cause this?
Best, JAG100
@Mitsugaru. Hi there! EpicATrain was trying to assist with regard to our KarmicJail installation. I saw your comments and I wanted to mention that I don't have MySQL turned on in the KarmicJail Configuration File. It's currently set to "False". So, it should be using SQLite is that correct?
Do you think the problems we are having could be resolved by switching to MYSQL? I would appreciate your thoughts.
Best, JAG100
Would be cool if people could vote to jail someone :3
@EpicATrain
No, its not really.
However, the interesting thing is that it looks like you're set to use MySQL... then why would SQLibrary be using sqlite?
In any case, I haven't seen this issue before with anyone else. No idea what's going on with your environment.
We removed your plugin from our server and the server is running smooth. Please update your plugin!
Is this plugin even active anymore?
http://pastebin.com/ETvdnE5T
More show stopping bugs!
Hey, our server keeps not responding and it's getting really annoying. A random person mentioned our problem MIGHT be karmic jail related. Here's our error:
http://pastebin.com/5bjG5p9E
Here's what they saw:
com.mitsugaru.karmicjail.database.DBHandler.setPlayerItems(DBHandler.java:646)
Here's our plugin list:
If you can help, please do. Let me know what other information you may need.