Magic

Magic

190k Downloads

Experience exploit

Momonche opened this issue ยท 6 comments

commented

Hello !

Actually a player can use a GrindStone to disenchant a magic item, after this, Magic fix this item by re-enchant it, but the player can use a Grindstone to re-disenchant, ect

Have you an idea to fix that ?

commented

Please try this as a work-around for now, in plugins/Magic/materials.yml:

containers:
- chest
- furnace
- brewing_stand
- dispenser
- hopper
- dropper
- trapped_chest
- barrel
- grindstone

That should at least prevent the unstashable wands from being placed in grindstones... I hope. I'll try it out myself when I get a chance.

But probably a bigger fix is needed that unfortunately may rely on some updated API (grindstone events?) that I don't have access to.

commented

I'm going to sleep I check this soon as I can

PS: Paper make a GrindStone event: PaperMC/Paper@70df8f2
Maybe Spigot can add it ? I will ask them

commented

Even if Spigot adds it I can't use it unless I drop support for older versions.

Which I am considering doing soon.

I tested the "containers" thing and unfortunately it does not cover everything, since (for instance) wizard armor is stashable but enchanted.

I'll see if I can figure something else out.

commented

Ok well I've got what I think is a good fix, it'll be in this dev build:

http://jenkins.elmakers.com/job/MagicPlugin/3082/com.elmakers.mine.bukkit.plugins$Magic/

Thanks for the report!

commented

I can't take a magic item and put into the grindstone but I still can shift+click and that works

commented

I think I fixed shift-click, too. If you're still having trouble in the latest versions of magic, please let me know!