diff --git a/src/integration/plotsquared/5/src/main/java/org/maxgamer/quickshop/integration/plotsquared/PlotSquaredIntegrationV5.java b/src/integration/plotsquared/5/src/main/java/org/maxgamer/quickshop/integration/plotsquared/PlotSquaredIntegrationV5.java index 4ccdb1b2f..59a3632cb 100644 --- a/src/integration/plotsquared/5/src/main/java/org/maxgamer/quickshop/integration/plotsquared/PlotSquaredIntegrationV5.java +++ b/src/integration/plotsquared/5/src/main/java/org/maxgamer/quickshop/integration/plotsquared/PlotSquaredIntegrationV5.java @@ -99,8 +99,8 @@ public class PlotSquaredIntegrationV5 extends QSIntegratedPlugin { this.createFlag = new QuickshopCreateFlag(); this.tradeFlag = new QuickshopTradeFlag(); GlobalFlagContainer.getInstance().addAll(Arrays.asList(createFlag, tradeFlag)); - plugin.getLogger().info("{0} flags register successfully.",getName()); - Util.debugLog("Success register flags.",getName()); + plugin.getLogger().info(ChatColor.GREEN + getName() + " flags register successfully."); + Util.debugLog("Success register " + getName() + " flags."); PlotSquared.get().getEventDispatcher().registerListener(this); } diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index 86f228331..1344d17db 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -598,8 +598,8 @@ public class QuickShop extends JavaPlugin { } Util.debugLog("Unloading all shops..."); try { - if (this.getShopManager() != null) { - this.getShopManager().getLoadedShops().forEach(Shop::onUnload); + if (getShopManager() != null) { + getShopManager().getLoadedShops().forEach(Shop::onUnload); } } catch (Exception ignored) { }