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 @EventHandler
public void AnnounceUpdate(UpdateEvent event) 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) if (event.getType() != UpdateType.FAST)
return; return;

View File

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