Plugin Request: New World Generate on Everyone's Death

Discussion in 'Archived: Plugin Requests' started by shutterbrandon, May 8, 2012.

  1. Offline

    shutterbrandon

    Plugin category: World, PVP, Hardcore

    Suggested name: HardcoreNewWorld

    A bit about me: I'm a web developer/system admin with no experience in java. I will be sending myself through a crash course in the upcoming weeks to try to tackle the jewel that is java. That being said, this will probably be my first project. However, if something else exists out there and has been open sourced I would rather fork off of that. I have been hosting a weekly game off my computer at home that I use for work. It is plenty powerful to run the games, however, my upload speed is the bottleneck.

    What I want: I am hosting the weekly game with the usage of Ultra Hardcore and World Border. I am looking for a plugin that auto creates a new world, "pardons" the players that were banned and does this when there is only one player left.

    An extra idea would be the ability to freeze all players until everyone is in place then do some sort of countdown to start.

    Ideas for commands: /freeze /unfreeze /newworld

    When I'd like it by: Saturday would be excellent, but if not it's no big deal!

    Extra thoughts:Thank you for reading this, and possibly eventually pointing me in the correct direction either with current plugins that do this, or helping and/or making one for me. Have a great day!
     
  2. Offline

    Tim619

    This is possible... or just add a whitelist and a banlist, and check if players are banned or still alive.
    If they're all banned, then just drag that shitty world into the trash and start a new world. Piece of cake.
     
  3. Offline

    bob3695

    This interests me a lot actually. I'll whip something up in the morning. Shouldn't be too difficult (have to do some research on some parts but shouldn't be too hard :))
     
  4. Offline

    Ytry

    I agree with Tim this is possible but unless your server is really popular, and want it to do this even when you are not on I don't see a point in getting a plugin for it.
     
  5. Offline

    sswe902

    his server probably is huge, considering his request, but thats just me assuming
     
  6. Offline

    shutterbrandon

    Good to hear! I'm excited to see what you come up with. Ytry the reason I am thinking a plugin would be beneficial for this is the automation factor. I want it to work if there is 200 players or if there is 1000+. The ability to have a server that constantly creates new Death Matches, in my opinion, can lead to a very popular server.

    bob3695. Just to throw a wrench in your ideas! Is it possible to make it if people join mid game they get "frozen" and cannot move until the game is over? Not really sure how it would work.

    Again, super excited to see what you come up with!
     
  7. Offline

    Ytry

    shutterbrandon about what bob said I think it would be easier for him to just block new players from joining if there is a game going on
     
  8. Offline

    bob3695

    Well technically it could be either but my thoughts are this:

    When no one is on the game just waits, once players start joining they are frozen until either a max number of players is reached or if there is a min number of players and after a certain waiting time. Once players are freed from being frozen the game has "started" at that point it blocks any new players from joining. I can give them a nice "game in progress" message when they try and join. Upon a players death they can be kicked or you can have it set to hardcore mode (there is one downfall to hardcore mode which will be seen here...) if you go with the kicked route then the players won't be able to rejoin the server till a new game starts. If you o hardcore mode on the server after there is one player left clean ban list (which means you can't ever truly ban anyone) and then reset the map. If you really want players to be able to join an idea would be setup a second "waiting" world where anyone that joins during a game is teleported to where they can't build and are just placed in a room.
     
  9. Offline

    shutterbrandon

    I'm not worried about not being able to really "ban" anyone. I can ban them using iptables so they cannot connect to my server at all, let alone minecraft.

    I'm assuming I'll be able to set min/max numbers using a config file? Could we set it up so when they die they go to a 2nd world rather than banning? I realize that makes the Ban part of the Ultra Hardcore mod useless. Just throwing out ideas.

    You get the basic understanding where I'm coming from, I have faith in you bob3695 :)
     
  10. Offline

    Ytry

    bob3695 Why don't you just make it so it kicks them rather than ban them. If you have it so no one can join when the game is in progress then that solves the banning problem.
     
  11. Offline

    bob3695

    Yeah, just porting them to the "waiting" world is very possible. And yes, the min and make plays could be configurable via a config file. So to sum up what I'll work towards:

    Players join, they are placed in the "waiting room" (will allow you to set spawn cords via config or I can include a command). Once enough players join they are tpd to main world (is everyone getting spawned to the worlds spawn fine?). When a player dies they get put into the "waiting" room again. Once only one player is left on the main world, regenerate the main world, rinse and repeat. Correct?

    Ytry that was my suggestion as an alternative to banning :) sorry if I didn't make that clear

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

    Ytry

    bob3695 I think you should kick the players instead of just sending them back to a waiting world because that way more players get a chance to play, and also simply regenerating the main world would be kind of lame in my opinion it should generate a whole new world that way there is no known good / bad places right away.
     
  13. Offline

    shutterbrandon

    Will this still work with the Ultra Hardcore part of the server? That auto bans people.

    And yes, you are dead on with two exceptions. Everyone will spawn at 0.0, will be about 20 seconds of no pvp. Is there anyway you can do a time limit? Every 15 minutes, every player loses .5 hearts. Just to expedite the game and not promote camping.

    And I agree with bob3695. A new world rather than re-using the same world.
     
  14. Offline

    Ytry

    I am the one that said a new world he said to regenerate the world which I took as using the same over again
     
  15. Offline

    bob3695

    Yeah, when I said regenerate the world I meant let the server generate the world from nothing. That is possible shutterbrandon. If your using a plugin that auto bans at death then I will need to make the plugin clear the ban list. I'll have to look at the plugin ou are currently using in the AM to make sure it works well together. If I can't get around the auto ban then I think you will get a nice cycle of players with the waiting room idea becaus what will happen is if player a is playing and dies then tries to get back in before the game is over, they can't. But if player b didn't play last game then they can get into the waiting room. Once the current game is over it clears the ban list and let's everyone in but the players that hadn't played will already be waiting.
     
  16. Offline

    Ytry

    bob3695 now that we have been talking about this for a bit I have become interested where I wasn't before. Would you like any help with this, I am a fairly new java programmer I really need the experience in making plugins. I also think this would be fun to do.
     
  17. Offline

    bob3695

    Well the actual plugin development won't be ver difficult. I am going to keep it open source and host it on bukkit dev so you would be more then welcome to check out how it is done and if I need help I'll let you know.
     
  18. Offline

    Ytry

    Okay, like I said I am a noob at this point still learning.
     
  19. Offline

    bob3695

  20. Offline

    dillyg10

    Darn! I really wanted to do this :D. Gl to bob3695, btw I would recommend using rtookit, that will make restarting the server after new world creation a breeze!
     
  21. Offline

    bob3695

    I don't see any reason to restart the server? I can use methods to do everything I need while keeping the server running.
     
  22. Offline

    dillyg10

    If you are going to be creating a new world, your going to have to restart the server, or use MultiVerse API's. Also, if a new world is going to be created you are probably going to want to make your own world border system, because the "spawnpoin" is not always 0,0,0.
     
  23. Offline

    bob3695

    Bukkit has the ability to create worlds (Server.CreateWorld). Spawn point set via the map isn't a huge concern. If it comes down to it I can just teleport them directly to 0,0 of the world.
     
  24. Offline

    shutterbrandon

  25. Offline

    dillyg10

    So are you going to continuously make worlds? That's a bad idea, here is what you should do:
    -> When everyone dies use Bukkit.shutdownServer() {Has to be using rtoolkit}
    -> in the onDiable() delete world folder
    That's it.. seriously, 2 steps :).
     
  26. Offline

    bob3695

    dillyg10 Why is generating worlds such a bad idea? Kick it off on a separate thread and no one knows any better.
     
  27. Offline

    dillyg10

    Because, why make multiworlds, when you can just have one world? What is the problem with restarting the server anyway, it's a good way to refresh the memory, and keep the server alive.
     
  28. Offline

    bob3695

    It ruins the ability to have new players queue up for the next match before the current players are able to re-join.
     
  29. Offline

    shutterbrandon

    I don't want the server restarting. That would completely defeat the purpose of the waiting world (which I think is a great idea.) Also, I don't want to explain to my members that after every game, I'm going to restart the server, that alone in itself would be annoying to do.
     
  30. Offline

    bob3695

    shutterbrandon no worries, no server restart needed :)

    Do you want to continue to use Ultra Hardcore plugin or do you want this as a replacement? I need to know this so I know if the plugin should handle the banning/kicking and have additional features added.
     

Share This Page