Plugin category: Admin Minecraft version: 1.10 // 1.10.2 Suggested name: FactionsDisableRaiding What I want: A plugin to block TNT and Creeper Eggs from being placed (therefore blocking raiding on Factions servers) Ideas for commands: /raid enable - allows the placing of TNT and Creeper Eggs /raid disable - disallows the placing of TNT and Creeper Eggs Ideas for permissions: raid.enable - /raid enable raid.disable - /raid disable When I'd like it by: ASAP If you have any more questions, feel free to ask!
<EDIT by Moderator: redacted mega url> I got too stressed making this so all the creepers in the world will be killed on running of /raiding disable xD
@Minterrr I know the plugin's all finished and the sort, but wouldn't just listening for a PlayerInteractEvent, checking the RIGHT_CLICK action. checking if the player is holding a creeper egg? Killing all creepers may cause lag for the server, since you have to scan though all active entities, but it shouldn't have an effect on a server with decent ram.
@Minterrr And please upload it to dropbox, google drive, BukkitDev or (I think) anywhere else not displaying ads. The ones I mentioned are certainly okay.
I'll have another go, I'll try not to get stressed with it this time. I'll explain the issue. In Craftbukkit there is a Material.<MATERIAL> list so if I wanted to check the item in someones hand, I'd do code to check if the material equals Material.ItemName. But a creeper egg doesnt have a unique Material.<NAME>, it comes under Material.MONSTER_EGG, I can disable all spawn eggs if you like? Only using Creeper Egg hasn't worked for me. Reply to this thread ASAP, I can have it done for you within 10 minutes
@MrGriefer_ Yeah, you can do it. It baffled me because to check if its a creeper egg, you have to do something about an itemstack but you can't do that if you check what item the player has in his/her hand