Improves the differentiation between portals (stargates) and gates

This commit is contained in:
2021-09-21 18:28:18 +02:00
parent 24af26324a
commit b7c7252fad
5 changed files with 97 additions and 116 deletions

View File

@ -282,8 +282,8 @@ public class Stargate extends JavaPlugin {
@Override
public void onDisable() {
PortalHandler.closeAllGates();
PortalHandler.clearGates();
PortalHandler.closeAllPortals();
PortalHandler.clearPortals();
managedWorlds.clear();
getServer().getScheduler().cancelTasks(this);
}
@ -466,7 +466,7 @@ public class Stargate extends JavaPlugin {
public void loadAllPortals() {
for (World world : getServer().getWorlds()) {
if (!managedWorlds.contains(world.getName())) {
PortalHandler.loadAllGates(world);
PortalHandler.loadAllPortals(world);
managedWorlds.add(world.getName());
}
}
@ -506,7 +506,7 @@ public class Stargate extends JavaPlugin {
activePortalsQueue.clear();
openPortalsQueue.clear();
managedWorlds.clear();
PortalHandler.clearGates();
PortalHandler.clearPortals();
GateHandler.clearGates();
// Store the old Bungee enabled value