mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-10-31 15:59:48 +01:00
Only disable Addons, not Pladdons
Plugin disabling is done by the server. Fixes #2117
This commit is contained in:
parent
5c5077a6b5
commit
84e6523b9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user