Only disable Addons, not Pladdons

Plugin disabling is done by the server.

Fixes #2117
This commit is contained in:
tastybento 2023-04-08 16:20:35 +01:00
parent 5c5077a6b5
commit 84e6523b9d

View File

@ -450,8 +450,8 @@ public class AddonsManager {
public void disableAddons() {
if (!getEnabledAddons().isEmpty()) {
plugin.log("Disabling addons...");
// Disable addons
getEnabledAddons().forEach(this::disable);
// Disable addons - pladdons are disabled by the server
getEnabledAddons().stream().filter(addon -> !pladdons.keySet().contains(addon)).forEach(this::disable);
plugin.log("Addons successfully disabled.");
}
// Unregister all commands