workstuffchanges on monster maze

This commit is contained in:
fooify 2015-09-23 19:23:21 -07:00
parent 0ad91a6b0b
commit a301c87efc

View File

@ -15,6 +15,7 @@ import org.bukkit.event.EventHandler;
import org.bukkit.event.block.EntityBlockFormEvent;
import org.bukkit.event.entity.EntityCombustEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityRegainHealthEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
@ -64,11 +65,21 @@ public class MonsterMaze extends SoloGame
this.DamagePvP = false;
this.DamageFall = false;
this.HungerSet = 20;
this.PrepareFreeze = false;
//_maze = new SnowmanMaze(this, WorldData.GetDataLocs("GRAY")/*, WorldData.GetCustomLocs("103")*/);
}
@EventHandler
public void health(EntityRegainHealthEvent event)
{
if(!(event.getEntity() instanceof Player)) return;
event.setCancelled(true);
}
@EventHandler
public void Update(UpdateEvent event)
{
@ -220,7 +231,7 @@ public class MonsterMaze extends SoloGame
Scoreboard.WriteBlank();
Scoreboard.Write(C.cDPurple + C.Bold + "Beacon Timer");
Scoreboard.Write(C.cYellow + C.Bold + "Beacon Timer");
if(IsLive())
{
Scoreboard.Write(_maze.getPhaseTimer() + " Seconds");