Fixed AAC integration

This commit is contained in:
Auxilor 2020-12-30 00:34:34 +00:00
parent 229b6f91d0
commit d919a079cb
2 changed files with 3 additions and 3 deletions

View File

@ -91,14 +91,14 @@ public class EcoEnchantsPlugin extends AbstractEcoPlugin {
*/
@Override
public void disable() {
Bukkit.getServer().getWorlds().forEach((world -> {
Bukkit.getServer().getWorlds().forEach(world -> {
List<BlockPopulator> populators = new ArrayList<>(world.getPopulators());
populators.forEach((blockPopulator -> {
if (blockPopulator instanceof LootPopulator) {
world.getPopulators().remove(blockPopulator);
}
}));
}));
});
this.getExtensionLoader().unloadExtensions();

View File

@ -328,7 +328,7 @@ public abstract class AbstractEcoPlugin extends JavaPlugin {
integrationLoaders.add(new IntegrationLoader("Kingdoms", () -> AntigriefManager.register(new AntigriefKingdoms())));
// Anticheat
integrationLoaders.add(new IntegrationLoader("AAC", () -> AnticheatManager.register(new AnticheatAAC())));
integrationLoaders.add(new IntegrationLoader("AAC5", () -> AnticheatManager.register(new AnticheatAAC())));
integrationLoaders.add(new IntegrationLoader("Matrix", () -> AnticheatManager.register(new AnticheatMatrix())));
integrationLoaders.add(new IntegrationLoader("NoCheatPlus", () -> AnticheatManager.register(new AnticheatNCP())));
integrationLoaders.add(new IntegrationLoader("Spartan", () -> AnticheatManager.register(new AnticheatSpartan())));