mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-01 00:10:40 +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() {
|
public void disableAddons() {
|
||||||
if (!getEnabledAddons().isEmpty()) {
|
if (!getEnabledAddons().isEmpty()) {
|
||||||
plugin.log("Disabling addons...");
|
plugin.log("Disabling addons...");
|
||||||
// Disable addons
|
// Disable addons - pladdons are disabled by the server
|
||||||
getEnabledAddons().forEach(this::disable);
|
getEnabledAddons().stream().filter(addon -> !pladdons.keySet().contains(addon)).forEach(this::disable);
|
||||||
plugin.log("Addons successfully disabled.");
|
plugin.log("Addons successfully disabled.");
|
||||||
}
|
}
|
||||||
// Unregister all commands
|
// Unregister all commands
|
||||||
|
Loading…
Reference in New Issue
Block a user