A tad hard for me... Automated Hunger Games

Discussion in 'Plugin Development' started by BurnBlader, Nov 19, 2012.

Thread Status:
Not open for further replies.
  1. I'm trying to code a plugin, that makes a hunger games. It has kits etc. What I need is a way to make it be automated. I want the server to start up, countdown from 8 minutes, teleport everyone to 0,0, have 1 minute of invincibility and then make you get kicked and not be able to rejoin when you die. When there is one person left, I want the server to close and it starts again.

    Would anyone be able to take a go at this? I tried but failed miserably. I'm only intermediate at plugins, so I would apreciate some help.

    I have everything done, except for the automated part.
  2. Offline


    SurvivalGames look it up
  3. Offline


    "SurvivalGames look it up"
    He said he wanted to try and make one himself
    not get it from someone
    he just needs alittle help is all
  4. Offline


    Automated minigames use some Schedulers to make it all automated.
    look into them.
  5. Offline


    why close the server? and not implement a way to restart the game?
    1. // Kind of psuedo code
    2. public void restart()
    3. {
    4. makeJoinable();
    5. doWhateverNeededBeforeSchedulingRestart();
    6. Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable()
    7. {
    8. @Override
    9. public void run()
    10. {
    11. startGame();
    12. etc();
    13. }
    14. }, 20L*amountOfSecondsBeforeRestartTheGame);
    15. }
  6. So then would I make a command, that when you do it, it runs restart()?
Thread Status:
Not open for further replies.

Share This Page