Hi bukkit, I have a problem. I'm trying to make a minigame, and I have the runnables setup and such, but I have no idea where the actually code for the minigame goes :S please help and thanks!
ShadowLAX Every time someone joins (like on command) you would check if the player count is 1, if yes then start a runnable to end the game. However since my battledome plugin has multiple states, do the above and after the runnable ends start another runnable to start another runnable until the game ends, call an end() or endGame() method.
chasechocolate xTrollxDudex Well, that helps a little bit, but now I have a bigger problem. My plugin random decides to players to battle at a time, how do I keep that going when one of the players dies? So like, 2 people player. One of them dies, than instantly 2 more people are chosen to play. I don't think a runnable is the answer, is it? EDIT: Also, how would I check to see if there are the specified amount of players on if people leave? Like say there are 5 players on, and you need a minimum of 3, and 3 people leave leaving 2 left in the game. How would i check to cancel the start game?
Bump, please i need help D: VitalIntel -_- I have learned them. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
VitalIntel If you don't want to help that's fine, but I don't like to be criticized. Of course it goes somewhere in a class, but I don't know exactly where, like whether or not it goes between the runnables, in its own class, etc. I have learned basic java and Bukkit, but I have not messed around with games enough to know. I have to learn somewhere.
ShadowLAX Shouldn't you listen for player death went and check if there is 1 player left, make an end() and open up the arena for other players to join? IceBurgers Commenting is really unnecessary in this case...