ToxicRat2000
Spectator
- Joined
- Dec 25, 2013
- Messages
- 17
- Reaction score
- 1
So basically what the title says, then you don't have to wait like 2.5 minutes after the room is full.
Thanks in advance.
Thanks in advance.
Our Minecraft servers are offline but we will keep this forum online for any community communication. Site permissions for posting could change at a later date but will remain online.
That's pretty easy. I can think of the programming needed for this out of my head already. Assuming we have a method to update the time every second:An addition to this would have to make sure it didn't reset every time someone new joined/left...
boolean reachedMaximum = false;
if(this.theWorld.playerEntities.size() == lobbyplugin.maxPlayers && !reachedMaximum) //or whatever
{
reachedMaximum = true;
lobbyplugin.counterTime = 0,5 //in minutes
}
I think that is correct coding for it.. Pixelatorx2That's pretty easy. I can think of the programming needed for this out of my head already. Assuming we have a method to update the time every second:
So it will only happen once.Code:boolean reachedMaximum = false; if(this.theWorld.playerEntities.size() == lobbyplugin.maxPlayers && !reachedMaximum) //or whatever { reachedMaximum = true; lobbyplugin.counterTime = 0,5 //in minutes }
Why did you include that profile link? Is he a developer or something?I think that is correct coding for it.. Pixelatorx2
No, a friend of mine who knows java really well. I know a small bit, and I'm just making sure to see if it's right.Why did you include that profile link? Is he a developer or something?
"this.theWorld.playerEntities.size()"That's pretty easy. I can think of the programming needed for this out of my head already. Assuming we have a method to update the time every second:
So it will only happen once.Code:boolean reachedMaximum = false; if(this.theWorld.playerEntities.size() == lobbyplugin.maxPlayers && !reachedMaximum) //or whatever { reachedMaximum = true; lobbyplugin.counterTime = 0,5 //in minutes }
Oh yea forgot to include that in the if statement. You get what I mean though and it's pretty easy to achieve."this.theWorld.playerEntities.size()"
Actually I woudnt do anything like this, you have the scheduler calling a method repetively and without need. What if its already past 30 seconds? Just gonna set the time back to 30 .
That won't happen. Look at the code posted.I think that idea is really cool , but if The timer is going to restart when a person leave , its not cool xD
Kewl! When will MCGamer v2 be released?This feature is something that is already in the works, I believe, and will be released in MCGamer v2. I do know for a fact the pre-game time is being shortened to 10 seconds, though