ObbyDestruct
ObbyDestruct
Dear Anyone. I am unfortunately done with Bukkit. I know the staff will probably begin removing my plugins and for this, I'm sorry. Bukkit has become a chore and decided to focus on furthering screwing up their community and restricting code. For this reason: I urge you to read my friends Bergekillers' post here. Then start reminiscing of the good old days. Goodbye users of Bukkit and my plugins. I cannot work within a jail anymore. This will be the last and final update to this plugin. Again, I'm sorry. But programming for Bukkit is just not fun.
Description
Hello, Orcem's back with yet another lightweight RPG plugin! Introducing "ObbyDestruct" your friendly "TnT Breaks Obsidian" plugin. I will continue adding to this plugin for I have many ideas for the plugin. Please follow the project closely as it slowly evolves into a self-rewarding and hopefully donation applicable. (Trying to pay for school) I hope you enjoy it. You may request all appropriate modifications, I'll do my best to add them all.
Features
Own a factions server? Tired of players making their fortresses nearly impossible to raid because of Obsidian? Well I'm here to help! This plugin allows your players to use TnT to destroy, remove and mine Obsidian. Enjoy.
- Configurable amount of TNT to break the blocks
- Small but functional chance system
- Destroy Obsidian with TNT
ToDo:
Add Drop Limiter- Allow creepers to destroy obsidian (Config)
Log TnT explosionsAllow TnT to explode in water (Configurable)Allow custom resistance for user chosen blocks.
How to install:
- Download the most recent build of this plugin.
- Place downloaded plugin, "ObbyDestruct", into your plugins folder.
- Simply reload or preferably restart server.
- Enjoy and if you like it remember to check back for updates!
Donate (Help me pay for school [Computer Science])
Donate Via Paypal, please. : ) (Optional)
@jackdh
wow thanks great reply time!
Obby can be blown up in safezone (factions), also, the H2Otnt plugin makes tnt prevention in safezone disabled :S
needs a update for r4.0 causing a shit load of errors since i updated. thanks.
@Orcem12 Okay I think I know why it does this. When a player who is combat tagged logs out near tnt witch is set off and near obby, he will create a "fake explosion". This explosion does no damage to anything, so not to blocks or players. So thats why you get the " Could not pass event EntityExplodeEvent to ObbyDestruct " because this explosion does no damage.
Hope you can do something with this info and I hope it's a bit clear explained, otherwise just ask ;)
Greets, Xaldovit.
@Orcem12 okay, well, we can't disable that plugin, it is too essential for the server. I'll make a test server and try to get more info on the error when I've time. Maybe you can do something with it then if it is needed. greets, Xaldovit.
@xaldovit
Really depends on the error. If the error is causing a dysfunction to your overall gaming experience then you can try 2 things:
@Orcem12 hm ye, but I see this error quite a lot. I hope it just doesn't disables any plugins event.
@xaldovit
Ah I see: quitPlr.getWorld().createExplosion(quitPlr.getLocation(), explosionDamage); Handles damage that might be caused by the player getting hurt by TnT. Your players or yourself must have run this event and mine at the same time.
The log messages that the error occurred in this class at line 69 and 46
@xaldovit
Possibly, does CombatTime handle it's own TnT management?
Hm, in the error I see CombatTag some times, maybe its because of that?
@xaldovit
I've been trying to repeat this error for a week. I cannot. What other plugins are you using?
Getting this error sometimes:
[SEVERE] Could not pass event EntityExplodeEvent to ObbyDestruct org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at net.minecraft.server.Explosion.a(Explosion.java:194) at net.minecraft.server.World.createExplosion(World.java:1533) at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:225) at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:455) at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:463) at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:459) at com.trc202.CombatTagListeners.NoPvpPlayerListener.onPlayerQuitTimedMode(NoPvpPlayerListener.java:69) at com.trc202.CombatTagListeners.NoPvpPlayerListener.onPlayerQuit(NoPvpPlayerListener.java:46) at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:179) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:698) at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:124) at net.minecraft.server.NetworkManager.b(NetworkManager.java:234) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:558) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:450) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at Orcem.Renew.Mods.ObbyDestruct.ObbyDestruct.EntityExplode(ObbyDestruct.java:34) at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 26 more
Dunno if its severe, or if you can fix this, just saying. Greets, Xaldovit.
How do i configure this i cannot find the config.yml
@chickenputty Alright, I'll add durability for liquids.
Please make water protected obsidian not blow up.
@xaldovit It is. But I don't like it this way :/ The only plugin I was using fixed this, but It is outdated :(
Probaly (if written like this) the plugin makes obby "modified" wich means that it wil not take the natural effects of tnt, but the effects set by the plugin, so block break will not be canceled on obby when the tnt is in water because the tnt gets its own valuas of damage (the one you can edit in the config) and not the one that is set by the natural api wich makes blockbreaks canceled when tnt is in water. Correct me if I'm wrong. Greets, xaldovit.
Why doesn't water protect the obsidian?
@ultimateowner56 thats just the art of building strong and efficient walls (wich most of the time are cheaper than massive obby walls) ;)