Hub UHC time log

This commit is contained in:
Chiss 2014-10-11 20:10:48 +11:00
parent dc0709f17e
commit a7ceb24b15
2 changed files with 7 additions and 4 deletions

View File

@ -34,6 +34,11 @@ public class UHCManager extends MiniPlugin
@EventHandler
public void AnnounceUpdate(UpdateEvent event)
{
if (event.getType() == UpdateType.MIN_01)
{
System.out.println("UHC in " + UtilTime.MakeStr(_delay - (System.currentTimeMillis() % _delay)));
}
if (event.getType() != UpdateType.FAST)
return;

View File

@ -105,7 +105,7 @@ public class UHC extends TeamGame
new String[] {
"10 minutes of no PvP",
"Only Golden Apples restore health",
"Ores only exist in caves",
"Ores can only be found in caves",
"Borders shrink over time",
"Last player/team alive wins!"
});
@ -1146,7 +1146,7 @@ public class UHC extends TeamGame
@EventHandler
public void playerJoinable(PlayerJoinEvent event)
{
if (!_joinable)
if (!_joinable || GetState() != GameState.Recruit)
{
UtilPlayer.message(event.getPlayer(), " ");
UtilPlayer.message(event.getPlayer(), C.cGold + C.Bold + "This UHC game is not joinable yet!");
@ -1157,8 +1157,6 @@ public class UHC extends TeamGame
}
}
//Ensure 2 players per team
@Override
public GameTeam ChooseTeam(Player player)