NoEntityGrief
NoEntityGrief (formerly known as NoEnderGrief) is an ultra-lightweight plugin designed to simply stop mobs and entities from messing around with your world.
NoEntityGrief prevents: (Entirely multiworld configurable)
- Enderman block interaction.
- Sheep block changing. (They still regrow wool.)
- Explosions. Mobs and/or TNT.
- Snowman snow spread.
- Silverfish breaking regular stone bricks. (They still spawn from the special blocks.)
Code was written from scratch by me. One class file and 46 lines in total. (A mere 2.54kb in size!)
BukkitDev's 1000th accepted server mod!
I use java 7 x64.
I already restarted the server after changing the config, I'll try redownloading the plugin.
But I'm pessimist…
@Dzhalagash
I am unable to reproduce this. But I do know that this plugin *does* work.
It only loads settings on restarts (or on plugin reloads, though NoEntityGrief does not come with a native reload command). So adjusting it without rebooting the server (or reloading the plugin) will have no effect.
I suggest re-installing the newest version of NoEntityGrief, and letting it regenerate the config.
Also note: I build for Java 6, and do not support 5 or lower.
I'm using:
- PickBoat, has config.yml, it is personalized, it works as intended.
- DeathControl, has config.yml, it is personalized, it works as intended.
- BedRecovery, has config.yml, it is personalized, it works as intended.
- NoEntityGrief, has config.yml, it is personalized, it doesn't work as intended.
And those are all the plugins I'm using (server or client side, nothing cliend side in fact, not even textures), with craftbukkit latest version (unless one new came out in the last 3 days
@Dzhalagash
Do other plugins with config.yml's work?
I can't say about sheeps, since I can't find one, but if that tree wasn't made, trunk and leaves, of obsidian, TNT don't work either. To be less confusing, TNT didn't cause destruction, though it should have. I can guess sheeps aren't working either.
"level-name=Paco level-seed=Paco " That's a copy-paste from my server.properties.
The folder with the map info is names "Paco" and "Paco_nether" and "Paco_the_end".
So the world name should be Paco, correct?
@Dzhalagash
Is it properly UN-blocking TNT/Sheep?
http://img546.imageshack.us/img546/4775/notworkingx.png
Those were 3 different tries, and none of them worked.
Ofc that had to be the right one, but since IT'S NOT WORKING even after shutting down the server and restarting it, obviously, I tryed also other possibilities, since I don't know what you may have done with RegEx (and I didn't bother myself checking your source code).
I state this again, it's not working, snowmans are not leaving a trail of snow behind them like they should.
@Dzhalagash
- <Paco> - Paco - exempted_Paco
Does nobody who owns a server know how yaml syntax works? it's just "- Paco". :S
Would It help if I got rid of the _? :/
The config for snowmen, however, must be capitalized: "Snowman". It is simple and does indeed work....
I have a problem with configuration file too.
My world name is Paco.
I tried:
- <Paco> - Paco - exempted_Paco
none worked.
I wrote those just below "snowman", and I have a snowman in front of me, moving around and leaving no snow behind... It did before installing the plugin.
Either the configuration file is not working or it is not intuitive…
@Fishrock123
It's like 1 line of code. It's actually fewer instructions, but the speed doesn't matter, because it would be on the order of nanoseconds.
@falsevacuum
Edit: Actually, I think the method would be costlier to call. :s
@Fishrock123
Well, that's an easy solution. Just use CraftSheep.class instead of Sheep.class. Users won't see it, only programmers.
Edit:
You could also get the handle for the CraftEntity: CraftEntity.getHandle()
@falsevacuum
I wish.
Bukkit Entities != Minecraft Entities.
e.getEntity().getClass() will return CraftSheep not Sheep.
:s
This will shorten your code by 2 lines (?):
if(EWs.containsKey(e.getEntity().getClass()) && EWs.get(Enderman.class).contains(e.getBlock().getLocation().getWorld().getName())) e.setCancelled(true);
@Kriptini
Uhh...
I assume so, as it is able to prevent block damage from every explosion that calls the event, but I've never tried it.
Does this stop griefing caused by Ender Dragon Crystal explosions?
WOW! Thanks for considering my ticket! Great plugin too!
Ive been looking for a plugin like this forever!!!!!!! Thanks for the greap plugin!
@twinkles9999
- <insert name of your world, was it that hard?>
Somehow it dosnt disable what i want it to when i type
- exempted_worldname in the config file. Any help?