Inactive [MECH/EDIT] ToughMelt v1.7 - Clean Up Quick [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Kevin Forte, Apr 16, 2011.

  1. Offline

    Kevin Forte

    ToughMelt: Get Rid of Stuff Faster
    ~Version: 1.7~
    Download: [JAR]

    A few weeks back, @retsrif was awesome enough to make a plugin for me that melts ice in a radius you specify. A few weeks later, he was awesome enough to help me (an understatement) allow you to type any item ID and a radius and destroy that item in a similar way. I took both of these, combined them, and added permissions, and this is the result.

    Features:
    • Permission node that allows users to use simple melt (ice & snow).
    • Permission node that allows admins to melt anything.
    • Prevent ice from reforming. (An option in the config.yml in /plugins/ToughMelt)
    Commands:
    [] = Necessary Argument
    {} = Optional Argument
    • /melt [radius]
    This is the basic melt command. It turns all ice within the specified radius into water and melts all snow in the radius.
    • /melt [itemID] [radius]
    This is the admin's melt. It will destroy all of the specified item in the specified radius. Useful for wiping structures quickly without worrying about destroying your surroundings.

    To-Do:
    • Try and figure out the bug that requires you to use the melt command a few times to get rid of everything.
    • I don't know, what else can be done with this?
    Permissions (Now Optional!):
    To allow users to melt only ice and snow:
    Code:
    ToughMelt.melt

    The admin node to melt anything:
    Code:
    ToughMelt.tough


    Changelog:
    v1.7
    • New configuration options: Configure the max radii of melting ice/snow and all other materials. @wargamer2010: I didn't beat him to the next update.
    Show Spoiler

    v1.6
    • Prevent ice from reforming at all and prevent torches from melting ice! Thanks AGAIN @wargamer2010. I am going to beat him to the next update if it's the last thing I do... xP
    v1.5
    • ToughMelt no longer requires permissions. Thanks again @wargamer2010 for cleaning up after my stupid. :)
    v1.4
    v1.3
    • OP functionality added.
    v1.2.1
    • Permissions updated.
    v1.2
    • Basic /melt command now also melts snow.
    v1.1:
    • Limited the radius to 30 to avoid the crash resulting from too high a radius.
    v1.0:
    • Released the plugin.

    Special Thanks To:
    retsrif - For indirectly doing most of this.
    wargamer2010 - For making this plugin even better :p
     
    EnzoFX and Inscrutable like this.
  2. Offline

    kylebracewell

    This is awesome! I'm just having a problem where, instead of melting all of the block type within the radius, it removes every other block, creating a checkerboard pattern. I see that it's in your to-do list though, I really hope you figure it out! Looking forward to the next update.
     
  3. Offline

    Kevin Forte

    Yeah I know, it's really weird! I'll be heading to IRC to try and figure this out, but until then, glad you like it :p
     
  4. Offline

    retsrif

    Thanks for the mention! :D Awesome btw
     
  5. Offline

    catokul

    would be really useful if you could make it melt snow at the same time
    (its laggy to melt snow using command: melt 78 30 takes hours!
     
  6. Offline

    Kevin Forte

    Really? That might be your computer or something haha, melting a radius of 30 takes a second or two for me. I can give that a shot though, yeah :)
     
  7. Offline

    Kevin Forte

    @HairChalice I'm not positive but I think Permissions may have updated, so let me try and change that and see if it works again for you.

    Updated to v1.2.1, updated permissions (let me know if that fixes the issue)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  8. Offline

    tyman231

    Everytime I try using this, it says "An internal error occured while trying to perform this action" and I placed the .jar in my plugins folder and added the correct nodes, please help!
     
  9. Offline

    Kevin Forte

    Can you post what the console said as well? That would really help :)
     
  10. Offline

    Kaosthe1st

    I get the same error:

    Code:
    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'melt' in plugin ToughMelt v1.2.1 [Permissions Update]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
        at kforte318.ToughMelt.ToughMelt.onCommand(ToughMelt.java:53)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 14 more
    
    I don't use Permissions.
     
  11. Offline

    Kevin Forte

    There's your explanation haha. I need to learn how to make Permissions optional.
     
  12. Offline

    Kaosthe1st

    Ah, soon I hope! I have snow everywhere from the other day when I went crazy with a weather plugin.
     
  13. Offline

    Kevin Forte

    Hahaha :p Nice.
     
  14. Offline

    tehMugwump

    yeah, I'm getting the checkerboard snow removal as well. Great potential here now that the new weather/snow has ruined several of my towns...

    I'm actually having more success with "//replace 78 0".
     
  15. Offline

    Kaosthe1st

    @Kevin Forte
    I get the checker board removal also, which I understand is a bug, and so I've just been doing /melt 30 twice so ensure I've entirely cleared the area. My problem is that I have about a 50% success rate with the command, every other time I use it, I recieve: "an internal error occurred while attempting to perform this command" in-game. Then I lag for about 30 seconds before I get disconnected. I am running 2.7.2 Permissions Pheonix which I installed specifically for this plugin.

    When viewing my server.log I see the following:
    Code:
    21:50:20 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'melt' in plugin ToughMelt v1.2.1 [Permissions Update]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.OutOfMemoryError: Java heap space
        at java.lang.Integer.valueOf(Unknown Source)
        at org.bukkit.craftbukkit.CraftChunk.getBlock(CraftChunk.java:66)
        at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:60)
        at kforte318.ToughMelt.ToughMelt.onCommand(ToughMelt.java:66)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-05-12 21:50:20 [SEVERE] Exception in thread "Connection #5 read thread"
    2011-05-12 21:50:20 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    2011-05-12 21:50:20 [SEVERE]     at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source)
    2011-05-12 21:50:20 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-12 21:50:20 [SEVERE]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-05-12 21:50:20 [SEVERE]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-05-12 21:50:20 [SEVERE]     at java.lang.Class.newInstance0(Unknown Source)
    2011-05-12 21:50:20 [SEVERE]     at java.lang.Class.newInstance(Unknown Source)
    2011-05-12 21:50:20 [SEVERE]     at net.minecraft.server.Packet.a(Packet.java:52)
    2011-05-12 21:50:20 [SEVERE]     at net.minecraft.server.Packet.a(Packet.java:81)
    2011-05-12 21:50:20 [SEVERE]     at net.minecraft.server.NetworkManager.f(NetworkManager.java:127)
    2011-05-12 21:50:20 [SEVERE]     at net.minecraft.server.NetworkManager.c(NetworkManager.java:226)
    2011-05-12 21:50:20 [SEVERE]     at net.minecraft.server.NetworkReaderThread.run(SourceFile:69)
    2011-05-12 21:51:18 [INFO] Kaosthe1st lost connection: disconnect.timeout
    2011-05-12 21:55:07 [INFO] Kaosthe1st [/24.69.203.185:60534] logged in with entity id 262724
    2011-05-12 21:55:52 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'melt' in plugin ToughMelt v1.2.1 [Permissions Update]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    2011-05-12 21:55:52 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-12 21:56:50 [INFO] Kaosthe1st lost connection: disconnect.timeout
    
    I'm not java-saavy at all, but I imagine that this plugin is having errors with Permissions and it's causing the server to become overloaded.

    That's just a guess though. I'm hoping you can fix this soon.

    Edit: Turns out, even with that error I can still sometimes use /melt 1, /melt 5, /melt 10, but I tried /melt 29 and that didn't work. I'm assuming the plugin retrieves block information around me, and that a 30 block radius is too much for the server.
     
  16. Offline

    Kevin Forte

    That is your problem yeah. I optimized the max radius to my server, which was a bad idea considering I run it on 4 gigs of ram. Just try using some smaller values and you should get no error :)
     
  17. Offline

    Kaosthe1st

    I've found that even 10 stops working after awhile. I can't get more ram without paying for it, as I rent this server. Oh well. Thanks anyways.
     
  18. Offline

    Kevin Forte

    Man, that's crazy /: Sorry to hear that
     
  19. Offline

    tasakel

    How do i make permisions optional? I keep getting the internal error message and this is such a cool plugin. help
     
  20. Offline

    Kevin Forte

    Right now, you can't, but today I learned how to check if permissions is loaded or not, so I should be able to update soon :p
     
  21. Offline

    adde

    I got this:
    null
    org.bukkit.command.CommandException: Unhandled exception executing command 'melt' in plugin ToughMelt v1.2.1 [Permissions Update]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:97)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:701)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:666)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
    at kforte318.ToughMelt.ToughMelt.onCommand(ToughMelt.java:53)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    Iam using permissions.. Newest.. it say in chat: "an internal error occured while attempting to perform this command" and in the console it says: "[ToughMelt] is enabled, Permissions system not detected. Defaulting to OP"
    and iam op!
     
  22. Offline

    Kevin Forte

    Update, give it a shot, let me know the results :)
     
  23. Offline

    adde

    didnt work! :(
     
  24. Offline

    BLOWUPFISH

    Good job! But if this doesn't work and you have world edit just do /removenear <e.g snow ice>
     
  25. Offline

    Arkian123

    Remove all Bedrock (7) ...
    :p
     
  26. Offline

    Jaronoid

    One thing you may consider is providing the ability to turn snow regeneration via weather off completely. Snow's slowly eating my world...
     
  27. Offline

    Kevin Forte

    Updated to 1.4, Checkerboard Pattern Fixed! Thanks @wargamer2010 !

    Try it again now, and tell me if anything has changed. If not, can you repost the error?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  28. Offline

    po24

    Um wont it just spawn back if in a snowy biome
     
  29. Offline

    Kevin Forte

    Well, would you rather break all of the blocks or melt it all clean with one command? :p
     
  30. Offline

    po24

    I know i already have a /thaw command with World Edit im just saying wont it just respawn cause if you find snow your obviously in a snowy biome.
     

Share This Page