Pack-a-Punch
Source Code on Github: https://github.com/Kaikz/PackaPunch/
Pack-a-Punch machines from CoD Zombies!
Permissions (SuperPerms):
- packapunch.place.random - place random sign
- packapunch.use.random - use random sign
- packapunch.place.fixed - place fixed sign
- packapunch.place.fixed - place fixed sign
Todo:
- Implement a search system to match IDs to names.
- Allow admins to permission-ify each enchantment, possibly levels, too.
Usage:
- Just right click on a sign as shown below! (given you have the permission to)
- Requires Vault and a compatible economy system!
Screenshots:
(Random)
(Fixed)
Enchantment Info:
You can find the enchantment IDs here: http://www.minecraftwiki.net/wiki/Enchanting
Me = Sad Face it doesnt work with the 1550 build 2011-12-03 23:08:30 [SEVERE] Could not pass event PLAYER_INTERACT to PackaPunch java.lang.NoSuchMethodError: net.minecraft.server.ItemStack.a(Lnet/minecraft/server/Enchantment;I)V at net.pwncraft.kaikz.packapunch.PackaPunch.doReflection(PackaPunch.java:67) at net.pwncraft.kaikz.packapunch.PPPlayerListener.onPlayerInteract(PPPlayerListener.java:52) at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:330) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592) at net.minecraft.server.Packet15Place.a(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) I have vault and register
@xKaikz
Yeah vault :D
@rockxz3
No, I'm not hooking into iConomy itself. I'll probably make the switch to Vault.
@shinji257
There's no way of checking what enchantments are on an item, so its not possible.
If possible it would be a good idea to work with the list of valid enchantments for the item being enchanted including ensuring that the enchantment being applied doesn't conflict with any existing ones.
P.S. - Tim the Enchanter mod allows you to enchant the currently held item. I did that one as an admin item to re-enchant items where the enchantment was lost due to a plugin bug.
Ugh, I hate using register it doesn't let me reload my server anyway you could just hook into iConomy 6?
P.S. Register hasnt been updated since september and its almost december...
This is great. First time I've seen a way to control enchantments!