NucleusPowered / Nucleus

The Ultimate Essentials Plugin for Sponge.
http://nucleuspowered.org
MIT License
160 stars 69 forks source link

Jail items #680

Open meza opened 7 years ago

meza commented 7 years ago

I'm having all sorts of difficulties with people breaking out of jails with random items, like enderio:itemTravelStaff. I've been setting up command blocks to remove these items and exchange them to a token (a name tag) which they can use to reclaim their items once out of jail.

However, the staff is not the only item, and it's getting really tedious. I was thinking that the jail command could also strip the player of all their belongings (like in a real jail) before TPing them there, and giving them back once unjailed.

Not sure it's possible to exactly copy all item data though

dualspiral commented 7 years ago

We do it with kits and it seems to work alright! I'll look into it.

meza commented 7 years ago

so you do a /kit add - /clear @p ? How do you hook it up to the jail event?

dualspiral commented 7 years ago

Oh, no, what I meant was that the code that we use for kits works, so it should be simple and straight forward to port it to jails.

meza commented 7 years ago

ah, ok :) I like the idea very much so