I've modified a popular plugin to make anvils "work" with the latest spigot (even works with MCMMO)
1) rightclick to repair; there is a set level price that can be modified in the config.yml
2) /rename [name] to rename your item; there is also a fixed price in config.yml
The plugin is based off of Anvil Repairs:
/rename command based off:Code (Text):http://dev.bukkit.org/bukkit-plugins/anvilrepairs/
I've added the rename command to the repair plugins and it's smooth sailing; repairing enchanted items, renaming items, and even better than the default anvil ^_^Code (Text):http://dev.bukkit.org/bukkit-plugins/simple-rename/
Compiled via java jdk SE 7
Instructions: The plugin works off the bat, you just have to change/add your world(s) names in /plugins/AnvilRepairs/config.yml under "enabled-worlds:"
You can change the price of repairing an item (default 10[levels]) and renaming an item via the /rename command (default 2 [levels])
- Add a if statement to check if nothing is in the users hand [done]
- Add economy to /rename (Economy is already added for the repair system)
Enjoy the plugin! It sure helped work out anvils for me on 1.8; enjoy!
Note: Both plugins that I've borrowed code for are open-source and I can make a github fork but under fair-use my small modifications are fine.
[What's the point of making it open source if you don't want people to tinker ]
Feel free to play with the code, fork it, suggest, report, etc; as long as you don't sell the resource (that is illegal)
If you need to contact me, join #maratx on espernet IRC
Maratx, 3 minutes ago