fixed exploit on skylands

This commit is contained in:
Chiss 2014-12-22 21:08:44 +11:00
parent ec8e1f0546
commit fa0a9ac859

View File

@ -1142,11 +1142,19 @@ public class Bridge extends TeamGame implements OreObsfucation
if (event.getBucket() != Material.WATER_BUCKET)
return;
if (!_bridgesDown || WorldWaterDamage > 0)
if (WorldWaterDamage > 0)
{
UtilPlayer.message(
event.getPlayer(),
F.main("Game", "Cannot use " + F.elem("Water Bucket") + " on befores Bridges are down."));
F.main("Game", "Cannot use " + F.elem("Water Bucket") + " on this map."));
event.setCancelled(true);
}
else if (!_bridgesDown)
{
UtilPlayer.message(
event.getPlayer(),
F.main("Game", "Cannot use " + F.elem("Water Bucket") + " befores Bridges drop."));
event.setCancelled(true);
}
}