From 46f873634e671c3f49b5c806af3982ec848b9d97 Mon Sep 17 00:00:00 2001 From: AlexTheCoder Date: Thu, 28 Apr 2016 00:33:36 -0400 Subject: [PATCH] - Decrease time till Overtime in MCL - Block ability to flood in MCL --- .../games/minecraftleague/MinecraftLeague.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minecraftleague/MinecraftLeague.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minecraftleague/MinecraftLeague.java index ae5d85247..634879fed 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minecraftleague/MinecraftLeague.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minecraftleague/MinecraftLeague.java @@ -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) {