mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-04 22:54:43 +02:00
Some plot area restructuring
This commit is contained in:
@ -81,7 +81,7 @@ public class SpongeEventUtil extends EventUtil {
|
||||
|
||||
@Override
|
||||
public boolean callMerge(Plot plot, ArrayList<PlotId> plots) {
|
||||
return callEvent(new PlotMergeEvent(SpongeUtil.getWorld(plot.getArea().worldname), plot, plots));
|
||||
return callEvent(new PlotMergeEvent(SpongeUtil.getWorld(plot.getWorldName()), plot, plots));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -47,6 +47,14 @@ public class SpongeSetupUtils extends SetupUtils {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void unload(String worldName, boolean safe) {
|
||||
Optional<World> world = Sponge.getServer().getWorld(worldName);
|
||||
if (world.isPresent()) {
|
||||
Sponge.getServer().unloadWorld(world.get());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGenerator(PlotArea plotArea) {
|
||||
if (SetupUtils.generators.isEmpty()) {
|
||||
|
Reference in New Issue
Block a user