Development Assistance I need help from experienced coders

Discussion in 'Plugin Help/Development/Requests' started by theunknownme, May 17, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    theunknownme

    I am coding a plugin and I need help, my plugin is going to be using worldedit api which is already imported, but I was not able to find the command I was searching for in code to add to my command, I want to use the replace command in worldedit but I do not know how to use it in my code. I want the replace command to be used only on specific blocks (in this case only iron has to be replaced), and it needs to replace iron in all the minecraft world.

    P.S. I am using craftbukkit 1.8.3 api
     
  2. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives
    @theunknownme You don't need worldedit for that.
    In the onEnable: get all loaded chunks, loop through them, loop through their blocks, replace if needed.
    On chunkloadevent: loop through the blocks, replace if needed.
     
  3. Offline

    theunknownme

    Oh sorry I tought I was on the good forum

    @timtower I really want it as a plugin because I want it to act on a specific world and not on all the worlds and anyways the worlds given here are also regenerated all the time... So going in the folder everytime the world is regenerated is not a good thing

    EDIT by Timtower: merged posts
     
    Last edited by a moderator: May 17, 2015
  4. Offline

    timtower Administrator Administrator Moderator

    @theunknownme Then you check the worlds as well in the events and onEnable?
    And you aren't going into the folder at all. The server does that for you.
     
  5. Offline

    theunknownme

    @timtower what is the command for doing that?
     
  6. Offline

    timtower Administrator Administrator Moderator

    @theunknownme Already told what you need to do.
     
Thread Status:
Not open for further replies.

Share This Page