Things
This commit is contained in:
parent
c5cf306097
commit
ab49407584
@ -33,6 +33,8 @@ import nautilus.game.arcade.game.games.evolution.mobs.KitSpider;
|
|||||||
import nautilus.game.arcade.game.games.evolution.mobs.KitWolf;
|
import nautilus.game.arcade.game.games.evolution.mobs.KitWolf;
|
||||||
import nautilus.game.arcade.kit.Kit;
|
import nautilus.game.arcade.kit.Kit;
|
||||||
|
|
||||||
|
import org.bukkit.Location;
|
||||||
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
@ -48,6 +50,8 @@ public class Evolution extends SoloGame
|
|||||||
|
|
||||||
private NautHashMap<String, EvoToken> _tokens = new NautHashMap<String, EvoToken>();
|
private NautHashMap<String, EvoToken> _tokens = new NautHashMap<String, EvoToken>();
|
||||||
|
|
||||||
|
private ArrayList<Location> _evoPlatforms = new ArrayList<Location>();
|
||||||
|
|
||||||
private Objective _evoObj;
|
private Objective _evoObj;
|
||||||
|
|
||||||
public Evolution(ArcadeManager manager)
|
public Evolution(ArcadeManager manager)
|
||||||
@ -121,6 +125,16 @@ public class Evolution extends SoloGame
|
|||||||
return _evolve;
|
return _evolve;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ParseData()
|
||||||
|
{
|
||||||
|
for (Location loc : WorldData.GetCustomLocs("Red"))
|
||||||
|
{
|
||||||
|
loc.getBlock().setType(Material.AIR);
|
||||||
|
_evoPlatforms.add(loc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Double Kit
|
//Double Kit
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void storeTokens(GameStateChangeEvent event)
|
public void storeTokens(GameStateChangeEvent event)
|
||||||
@ -144,14 +158,14 @@ public class Evolution extends SoloGame
|
|||||||
if (event.GetState() != GameState.Prepare)
|
if (event.GetState() != GameState.Prepare)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (WorldData.GetCustomLocs("RED").size() <= 0)
|
if (_evoPlatforms.size() <= 0)
|
||||||
{
|
{
|
||||||
Announce(C.cWhite + C.Bold + GetName() + " ended, map not set up properly!");
|
Announce(C.cWhite + C.Bold + GetName() + " ended, map not set up properly!");
|
||||||
SetState(GameState.Dead);
|
SetState(GameState.Dead);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_evolve = new EvolveManager(this, WorldData.GetCustomLocs("RED").get(0));
|
_evolve = new EvolveManager(this, _evoPlatforms.get(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
Loading…
Reference in New Issue
Block a user