f
This commit is contained in:
@@ -15,6 +15,10 @@ CONFIG:
|
||||
Edit the config.yml file. You can set the height to clear above roads, the road width, the plot size (incluing half the road width on either side), the road material, and the level at which the road is generated.
|
||||
|
||||
Changelog:
|
||||
v0.4.2
|
||||
made city region refresh on server restart
|
||||
v0.4.1
|
||||
v0.4
|
||||
v0.3
|
||||
Added command to generate a home for a user that is not currently logged in.
|
||||
v0.2.1
|
||||
|
||||
@@ -24,9 +24,9 @@ public class LoginListener implements Listener {
|
||||
PlayerHome home = _plugin.getPlayerHome(player);
|
||||
if(home == null || home.getCuboid() == null || home.getCuboid().getVolume() == 0){
|
||||
MetropolisPlugin.log.info(String.format("Metropolis: Unable to get or create home for player %s", player.getName()));
|
||||
}
|
||||
|
||||
}else{
|
||||
Cuboid cuboid = home.getCuboid();
|
||||
player.sendMessage(String.format("Metropolis: Welcome %s your home is between (%d, %d, %d) and (%d, %d, %d)", player.getName(), cuboid.getMinX(), cuboid.getMinY(), cuboid.getMinZ(), cuboid.getMaxX(), cuboid.getMaxY(), cuboid.getMaxZ()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,6 +104,7 @@ public class MetropolisPlugin extends JavaPlugin {
|
||||
|
||||
_occupiedHomes = new ArrayList<PlayerHome>();
|
||||
fillOccupiedHomes();
|
||||
resizeCityRegion();
|
||||
|
||||
if(_loginListener == null){
|
||||
_loginListener = new LoginListener(this);
|
||||
@@ -284,7 +285,7 @@ public class MetropolisPlugin extends JavaPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
expandCityRegion();
|
||||
resizeCityRegion();
|
||||
return new Cuboid(getPlotMin(-size/2, -size/2), getPlotMax(-size/2, -size/2));
|
||||
|
||||
/*
|
||||
@@ -344,7 +345,7 @@ public class MetropolisPlugin extends JavaPlugin {
|
||||
/**/
|
||||
}
|
||||
|
||||
private void expandCityRegion() {
|
||||
private void resizeCityRegion() {
|
||||
size=calculateCitySize();
|
||||
ProtectedRegion cityRegion = regionManager.getRegion("City");
|
||||
if(cityRegion instanceof ProtectedCuboidRegion){
|
||||
|
||||
Reference in New Issue
Block a user