Minigame - Launching and More? Need help

Discussion in 'Plugin Development' started by Dubehh, Mar 15, 2014.

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

    Dubehh

    Hi

    I am coding a minigame and I am currently at the point that I need a countdown and checking if the game is in progress and whatnot.

    To be honest: I don't know how to start. I have watched some tutorials and threads but I don't learn anything from it.

    I do not ask anyone to spoonfed me. But if anyone could help me getting started, that would be awesome.
    I want all these methods in a different class, so that's what I did.
    I got two teams, red and blue and I need to launch the game if the players are equal or above a certain length, like 5 blue's and 5 red's, then the game can start etc.

    I am not a pro in coding, but I am not a noob either. So a link to a useful tutorial, or someone to guide me would be nice.

    Thanks!


    Please add ' Dubehh ' in your reply, or else I might not see it.
     
  2. Offline

    x1Bape

    To check whether the game is in progress or not, is easy depending on how you designed your object structure. It could be as easy as one boolean for the progress.
    Regarding the team checking, make a Team class containing slots for your players and make a method inside of that class checking if the slots are filled.
    For the countdown, use the bukkit scheduler. http://wiki.bukkit.org/Scheduler_Programming
     
  3. Offline

    Dubehh

    Thanks you for the link DanyBv
    but it didn't really help me alot,
    since I am working with different teams and such.
    But thanks for the reply
     
  4. Offline

    XvBaseballkidvX

    Is your minigame going to have a server to itself?
    Example:
    How Hypixel's server is setup
    Minigame Lobby -> SG-1, SG-2, SG-3, etc.
     
Thread Status:
Not open for further replies.

Share This Page