Spawn holograms
This commit is contained in:
parent
1ce2a362c6
commit
bbfd319bcd
@ -1,8 +1,10 @@
|
||||
package mineplex.game.clans.clans;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.TimeZone;
|
||||
import java.util.UUID;
|
||||
@ -40,12 +42,14 @@ import mineplex.core.common.util.NautHashMap;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.common.util.UtilTextMiddle;
|
||||
import mineplex.core.common.util.UtilTime;
|
||||
import mineplex.core.creature.Creature;
|
||||
import mineplex.core.creature.event.CreatureSpawnCustomEvent;
|
||||
import mineplex.core.disguise.DisguiseManager;
|
||||
import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.energy.Energy;
|
||||
import mineplex.core.explosion.Explosion;
|
||||
import mineplex.core.hologram.Hologram;
|
||||
import mineplex.core.hologram.HologramManager;
|
||||
import mineplex.core.movement.Movement;
|
||||
import mineplex.core.npc.NpcManager;
|
||||
@ -302,6 +306,46 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
||||
_clanRegions = new ClansRegions(plugin, this);
|
||||
_clanRegions.initializeRegions();
|
||||
|
||||
List<Location> jumpOffHolograms = Arrays.asList(
|
||||
// West Spawn
|
||||
new Location(Spawn.getSpawnWorld(), -295.5, 204, 36.5),
|
||||
new Location(Spawn.getSpawnWorld(), -295.5, 204, -26.5),
|
||||
new Location(Spawn.getSpawnWorld(), -331.5, 204, 6.5),
|
||||
new Location(Spawn.getSpawnWorld(), -266.5, 204, 6.5),
|
||||
|
||||
// East Spawn
|
||||
new Location(Spawn.getSpawnWorld(), 304.5, 207, -26.5),
|
||||
new Location(Spawn.getSpawnWorld(), 332.5, 207, 6.5),
|
||||
new Location(Spawn.getSpawnWorld(), 304.5, 207, 36.5),
|
||||
new Location(Spawn.getSpawnWorld(), 268.5, 207, 6.5)
|
||||
);
|
||||
|
||||
List<Location> welcomeHolograms = Arrays.asList(
|
||||
// West Spawn
|
||||
new Location(Spawn.getSpawnWorld(), -304.5, 204, 6.5),
|
||||
new Location(Spawn.getSpawnWorld(), -295.5, 204, 15.5),
|
||||
new Location(Spawn.getSpawnWorld(), -286.5, 204, 6.5),
|
||||
new Location(Spawn.getSpawnWorld(), -295.5, 204, -2.5),
|
||||
|
||||
// East Spawn
|
||||
new Location(Spawn.getSpawnWorld(), 295.5, 207, 6.5),
|
||||
new Location(Spawn.getSpawnWorld(), 304.5, 207, -2.5),
|
||||
new Location(Spawn.getSpawnWorld(), 313.5, 207, 6.5),
|
||||
new Location(Spawn.getSpawnWorld(), 304.5, 207, -15.5)
|
||||
);
|
||||
|
||||
for (Location location : jumpOffHolograms)
|
||||
{
|
||||
Hologram hologram = new Hologram(hologramManager, location, C.cDGreen+ "JUMP OFF", C.cGreen + "and begin your Clans adventure!");
|
||||
hologram.start();
|
||||
}
|
||||
|
||||
for (Location location : welcomeHolograms)
|
||||
{
|
||||
Hologram hologram = new Hologram(hologramManager, location, C.cDAqua + "Welcome to Clans Alpha", C.cAqua + "Please be aware there may be bugs", C.cAqua + "Map may reset at any time during Alpha!", C.cAqua + "type " + C.cYellow + "/clan" + C.cAqua + " to get started!");
|
||||
hologram.start();
|
||||
}
|
||||
|
||||
// Disables beds from being crafted
|
||||
Iterator<Recipe> it = _plugin.getServer().recipeIterator();
|
||||
Recipe recipe;
|
||||
|
Loading…
Reference in New Issue
Block a user