Sync naming

This commit is contained in:
fullwall 2021-04-14 02:01:34 +08:00
parent 874b2f660c
commit ca421b9cef
2 changed files with 2 additions and 2 deletions

View File

@ -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"),

View File

@ -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);