workstuffchanges on monster maze
This commit is contained in:
parent
0ad91a6b0b
commit
a301c87efc
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user