Holograms maybe?
This commit is contained in:
parent
219b86ae55
commit
181cce4774
@ -1684,4 +1684,8 @@ public class SpeedBuilders extends SoloGame
|
||||
Scoreboard.Draw();
|
||||
}
|
||||
|
||||
public Location getJudgeSpawn()
|
||||
{
|
||||
return _judgeSpawn;
|
||||
}
|
||||
}
|
||||
|
@ -3,12 +3,14 @@ package nautilus.game.arcade.game.games.speedbuilders.data;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.MapUtil;
|
||||
import mineplex.core.common.util.NautHashMap;
|
||||
import mineplex.core.common.util.UtilAlg;
|
||||
import mineplex.core.common.util.UtilBlock;
|
||||
import mineplex.core.common.util.UtilEnt;
|
||||
import mineplex.core.common.util.UtilInv;
|
||||
import mineplex.core.hologram.Hologram;
|
||||
import nautilus.game.arcade.game.games.speedbuilders.SpeedBuilders;
|
||||
import net.minecraft.server.v1_8_R3.BlockPosition;
|
||||
import net.minecraft.server.v1_8_R3.BlockStairs;
|
||||
@ -30,6 +32,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.material.Bed;
|
||||
import org.bukkit.material.Door;
|
||||
import org.bukkit.material.Stairs;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
public class RecreationData
|
||||
{
|
||||
@ -53,6 +56,8 @@ public class RecreationData
|
||||
|
||||
public ArrayList<Entity> Mobs = new ArrayList<Entity>();
|
||||
|
||||
private Hologram _hologram;
|
||||
|
||||
public RecreationData(SpeedBuilders game, Player player, Location loc, Location playerSpawn)
|
||||
{
|
||||
Game = game;
|
||||
@ -75,6 +80,11 @@ public class RecreationData
|
||||
DefaultGround[x][z] = CornerA.clone().add(x, -1, z).getBlock().getState();
|
||||
}
|
||||
}
|
||||
|
||||
Vector mid = loc.toVector().subtract(game.getJudgeSpawn().toVector()).multiply(0.5);
|
||||
Location hologramLocation = loc.clone().add(mid).add(0, 2, 0);
|
||||
_hologram = new Hologram(game.getArcadeManager().getHologramManager(), hologramLocation, C.cGreen + player.getName());
|
||||
_hologram.start();
|
||||
}
|
||||
|
||||
public boolean inBuildArea(Block block)
|
||||
@ -247,6 +257,8 @@ public class RecreationData
|
||||
CornerA.getWorld().playEffect(getMidpoint(), Effect.STEP_SOUND, Material.LOG.getId());
|
||||
|
||||
clearBuildArea(false);
|
||||
|
||||
_hologram.stop();
|
||||
}
|
||||
|
||||
public boolean isEmptyBuild(BuildData buildData)
|
||||
|
Loading…
Reference in New Issue
Block a user