From ca421b9cef66bccf00487a2dbef4d529fab659aa Mon Sep 17 00:00:00 2001 From: fullwall Date: Wed, 14 Apr 2021 02:01:34 +0800 Subject: [PATCH] Sync naming --- main/src/main/java/net/citizensnpcs/Settings.java | 2 +- main/src/main/java/net/citizensnpcs/commands/AdminCommands.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/net/citizensnpcs/Settings.java b/main/src/main/java/net/citizensnpcs/Settings.java index 09538d58c..e2839c71f 100644 --- a/main/src/main/java/net/citizensnpcs/Settings.java +++ b/main/src/main/java/net/citizensnpcs/Settings.java @@ -140,7 +140,7 @@ public class Settings { NPC_SKIN_VIEW_DISTANCE("npc.skins.view-distance", 100D), PACKET_UPDATE_DELAY("npc.packets.update-delay", 30), PLACEHOLDER_SKIN_UPDATE_FREQUENCY("npc.skins.placeholder-update-frequency-ticks", 5 * 60 * 20), - RELOAD_INSTANTLY("general.reload-warning-enabled", true), + WARN_ON_RELOAD("general.reload-warning-enabled", true), REMOVE_PLAYERS_FROM_PLAYER_LIST("npc.player.remove-from-list", true), SAVE_TASK_DELAY("storage.save-task.delay", 20 * 60 * 60), SELECTION_ITEM("npc.selection.item", "stick"), diff --git a/main/src/main/java/net/citizensnpcs/commands/AdminCommands.java b/main/src/main/java/net/citizensnpcs/commands/AdminCommands.java index f19ad07f8..c261a4e2c 100644 --- a/main/src/main/java/net/citizensnpcs/commands/AdminCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/AdminCommands.java @@ -44,7 +44,7 @@ public class AdminCommands { max = 1, permission = "citizens.admin") public void reload(CommandContext args, CommandSender sender, NPC npc) throws CommandException { - if (!Setting.RELOAD_INSTANTLY.asBoolean()) { + if (Setting.WARN_ON_RELOAD.asBoolean()) { Long timeout = reloadTimeouts.get(sender); if (timeout == null || System.currentTimeMillis() > timeout) { Messaging.sendErrorTr(sender, Messages.CITIZENS_RELOAD_WARNING);