From c195ea653a90e0d73ddbaacfc4558fd30be96bc2 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Sun, 10 Jan 2021 15:26:33 +0800 Subject: [PATCH] Tweaks --- .../maxgamer/quickshop/listener/ShopProtectionListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/listener/ShopProtectionListener.java b/src/main/java/org/maxgamer/quickshop/listener/ShopProtectionListener.java index e205f4aee..d2b86de29 100644 --- a/src/main/java/org/maxgamer/quickshop/listener/ShopProtectionListener.java +++ b/src/main/java/org/maxgamer/quickshop/listener/ShopProtectionListener.java @@ -109,13 +109,13 @@ public class ShopProtectionListener extends ProtectionListenerBase { worldSection = worldsSection.getConfigurationSection(world.getName()); } Objects.requireNonNull(worldSection).set("hopper.disable-move-event", false); - Objects.requireNonNull(worldSection).set("hopper.disable-move-event-quickshop-tips", "QuickShop automatic disabled this due it will allow other players steal items from shop. This notice only shown when have shops in current world and hopper protection is on and also disableHopperMoveEvents turned on."); + Objects.requireNonNull(worldSection).set("hopper.disable-move-event-quickshop-tips", "QuickShop automatic disabled this due it will allow other players steal items from shop. This notice only shown when have shops in current world and hopper protection is on and also disable-move-event turned on."); yamlConfiguration.save(paperConfigYaml); } } } catch (NoSuchFieldException | IllegalAccessException | NullPointerException | IOException e) { e.printStackTrace(); - plugin.getLogger().warning("Failed to automatic disable disableHopperMoveEvents for world " + world.getName() + ", please disable it by yourself or player can steal items from shops."); + plugin.getLogger().warning("Failed to automatic disable disable-move-event for world [" + world.getName() + "], please disable it by yourself or player can steal items from shops."); } });