Mavs changes.
This commit is contained in:
parent
46053e82e1
commit
68743cf73c
@ -24,37 +24,37 @@ public class MavericksWorldManager extends MiniPlugin
|
||||
{
|
||||
private World _world;
|
||||
private Location _spawn;
|
||||
|
||||
|
||||
public MavericksWorldManager(JavaPlugin plugin)
|
||||
{
|
||||
super("Mavericks World", plugin);
|
||||
|
||||
WorldCreator wc = new WorldCreator("Mav_Lobby");
|
||||
|
||||
WorldCreator wc = new WorldCreator("Mav_Stadium");
|
||||
wc.generator(new WorldGenCleanRoom());
|
||||
_world = wc.createWorld();
|
||||
|
||||
|
||||
_world.setGameRuleValue("doDaylightCycle", "false");
|
||||
_world.setTime(6000);
|
||||
_world.setPVP(true);
|
||||
|
||||
|
||||
_spawn = new Location(_world, 1.5, 22, 287.5, -180, 0);
|
||||
}
|
||||
|
||||
|
||||
public Location getSpawn()
|
||||
{
|
||||
return _spawn.clone();
|
||||
}
|
||||
|
||||
|
||||
public World getWorld()
|
||||
{
|
||||
return _world;
|
||||
}
|
||||
|
||||
|
||||
public boolean isInWorld(Entity e)
|
||||
{
|
||||
return _world.equals(e.getWorld());
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void onSpawn(CreatureSpawnEvent event)
|
||||
{
|
||||
@ -64,16 +64,16 @@ public class MavericksWorldManager extends MiniPlugin
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void onWeather(WeatherChangeEvent event)
|
||||
{
|
||||
if(!event.getWorld().equals(_world)) return;
|
||||
|
||||
|
||||
if(!event.toWeatherState()) return;
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void borderCheck(UpdateEvent event)
|
||||
{
|
||||
|
@ -624,7 +624,7 @@ public class ServerManager extends MiniPlugin implements BrawlShopProvider
|
||||
}
|
||||
|
||||
Region region = getPlugin().getConfig().getBoolean("serverstatus.us") ? Region.US : Region.EU;
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
for (ServerGroup serverGroup : mineplex.serverdata.servers.ServerManager.getServerRepository(region).getServerGroups(null))
|
||||
|
Loading…
Reference in New Issue
Block a user