- Decrease time till Overtime in MCL

- Block ability to flood in MCL
This commit is contained in:
AlexTheCoder 2016-04-28 00:33:36 -04:00
parent b4c5be81f3
commit 46f873634e
1 changed files with 15 additions and 1 deletions

View File

@ -814,7 +814,7 @@ public class MinecraftLeague extends RankedTeamGame
if (!OverTime)
{
if (UtilTime.elapsed(GetStateTime(), UtilTime.convert(15, TimeUnit.MINUTES, TimeUnit.MILLISECONDS)))
if (UtilTime.elapsed(GetStateTime(), UtilTime.convert(12, TimeUnit.MINUTES, TimeUnit.MILLISECONDS)))
{
OverTime = true;
UtilTextMiddle.display(C.cGold + "Overtime", C.cGold + "Dying will now cause your crystal to lose 50 health!");
@ -1931,6 +1931,20 @@ public class MinecraftLeague extends RankedTeamGame
event.setCancelled(true);
}
@EventHandler
public void onCreateWaterSource(PlayerBucketEmptyEvent event)
{
if (!IsLive())
return;
Block current = event.getBlockClicked().getRelative(event.getBlockFace());
if (current.getType() == Material.WATER || current.getType() == Material.STATIONARY_WATER)
{
event.setCancelled(true);
event.getPlayer().setItemInHand(new ItemStack(Material.BUCKET));
}
}
@EventHandler
public void onPlayerJoin(PlayerJoinEvent event)
{