RESET MAP

Discussion in 'Archived: Plugin Requests' started by Kingstarwest, Jun 7, 2013.

  1. Offline

    Kingstarwest

    Hey guys, I want a simple plugin that as soon as the command "/resetworld" is server will stop and when it comes back online there's a new map on the server.
     
  2. Offline

    timtower Administrator Administrator Moderator

    Kingstarwest do you mean an complete new map or just an backup?
    And dont mark the thread as filled if you still want help
     
  3. Offline

    Kingstarwest

    @timtower
    A complete new map and woops sorry about that!
    I also use terraincontrol and a simple plugin just to delete the world directory would work fine!

    Is this a hard to code plugin, just deleting a file on command /resetmap?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  4. Offline

    timtower Administrator Administrator Moderator

  5. Offline

    Kingstarwest

    timtower Oh, that's good to hear :p

    bump need this done asap

    I need this for my hunger games! D: can't make it go up without this

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  6. Offline

    timtower Administrator Administrator Moderator

  7. Offline

    Kingstarwest

    timtower Sorry, I need it to not restore the world but to generate a complete new one.
     
  8. Offline

    timtower Administrator Administrator Moderator

    Kingstarwest So when the server closes delete the world in the config? Will make this when I am back awake
     
  9. Offline

    Kingstarwest

    timtower MAKE THIS AND I WILL LOVE YOU SO MUCH and if you play mcpvp i'll get you a mcpvp hungergames kit :D
    Yeah, just deletes the folder "world" on a restart thanks so much if you do <3

    timtower Would terraincontrol still work with this then? As you just delete the directory "world" ?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  10. Offline

    timtower Administrator Administrator Moderator

    Kingstarwest Why not? I will probably make it delete the folder on shutdown / reboot. And got some school work to do first. Will make this for you when I have time for it.
    PM me the link of the thread so I won't forget it
     
  11. Offline

    Kingstarwest

    timtower likes this.
  12. Offline

    Burnett1

    The server wouldn't need shutdown, just kick everyone stop people from joining, delete and generate a new world then open it for joining. Do you have a multiple server network or is it just one server?
     
  13. Offline

    Kingstarwest

    Burnett1 I am planning to do just to do a /restart at the end of a game then once it's back up it should have a new map and you can continue to play etc, I have all it set up i just need maps on restart and It's just one small server right now there's no point in having multiple servers until it's finished which I pretty much need to go over the classes one last time and set a few stuff up, then i'll set it up 3 servers and hopefully get some donations and expand it from there.

    timtower Are you still able to do this today?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  14. Offline

    timtower Administrator Administrator Moderator

    Kingstarwest I can take an quick look. Won't be today as I am going to sleep
     
  15. Offline

    Kingstarwest

    timtower Okay, I guess I could wait then :)
     
  16. Offline

    WyldCrafters

    I just don't like how it has to restart the server, I wish it'd be or have an option to make it so that when the world is empty, it will delete the world. This way when the load command is executed, it will load a new world
     
  17. Offline

    timtower Administrator Administrator Moderator

    Random post, I will make this with an command, found an way to do this.
    Kingstarwest Will start with it

    WyldCrafters, Kingstarwest
    https://www.dropbox.com/s/y2hrzqk7tl7vn70/WorldDeleteLikeMe.jar
    Command : /WorldDelete <worldname>
    No permissions, also no OP checks
    No world regeneration, just the deleting

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  18. Offline

    Kingstarwest

    Thanks! I have already coded hungergames with Skript so if i execute /worlddelete then /restart it should regenerate the map upon restart and I could probably code so to use the command /worlddelete you need permision or only executuble by console sorry in school right now so can't be long but if you play mcpvp hungergames i'll buy you a kit (message me if you do :D) thanks so much :d will test when i get home ;) timtower
     
  19. Offline

    timtower Administrator Administrator Moderator

    Kingstarwest I don't play on those servers ;) And I will add permissions later, it was just an fast coding
     
  20. Offline

    Kingstarwest

    timtower Okay, I'll kindly offer you $5 if you want it msg me ur paypal :) I also tested it and it works fine! I did /worlddelete and it said internal error until i did /worlddelete world so it's all good :D

    Thanks man! remember to msg me ur paypal for the $5 :D
     
  21. Offline

    timtower Administrator Administrator Moderator

    Kingstarwest Forgot to add an check to that XD, will pm you the account
     
  22. Offline

    Kingstarwest

  23. Offline

    timtower Administrator Administrator Moderator

    Ty ;)
     
  24. Offline

    WyldCrafters

    timtower Kingstarwest If I did /worlddelete world and then /mvimport world would it load the new world without restarting the server?
     
  25. Offline

    timtower Administrator Administrator Moderator

    WyldCrafters My plugin just deletes the world folder, so import won't work, you need to create an new one. No restart needed
    And make an test server to see for yourself
     
  26. Offline

    WyldCrafters

    timtower so I have to manually put in a world each time?
     
  27. Offline

    timtower Administrator Administrator Moderator

    WyldCrafters Yep, like stated before, just removal, nothing more
     
  28. Offline

    WyldCrafters

    timtower that's a pain, id have to be on 24/7 uploading hundreds of games. I have a 200 person server and am trying to do this with my maps such as tunnel trouble... Is their anyway u can make it so it reloads the map when activated ?
     
  29. Offline

    timtower Administrator Administrator Moderator

    What do you mean with reload? Not an complete new world I assume?
     
  30. Offline

    WyldCrafters

    timtower Well saying there is no plugin that would reload a tunnel trouble arena back to normal, I guess it'd have to be a whole world...
     

Share This Page