From 45dd783f898df7f83564f20d9aab86c98685fe31 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Thu, 2 Jan 2014 17:42:59 +0400 Subject: [PATCH] Properly reload heal effects on config reload --- src/com/cnaude/chairs/ChairsCommand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/cnaude/chairs/ChairsCommand.java b/src/com/cnaude/chairs/ChairsCommand.java index 384cb6a..4b1f196 100644 --- a/src/com/cnaude/chairs/ChairsCommand.java +++ b/src/com/cnaude/chairs/ChairsCommand.java @@ -39,7 +39,11 @@ public class ChairsCommand implements CommandExecutor { if (args[0].equalsIgnoreCase("reload")) { if (sender.hasPermission("chairs.reload") || !(sender instanceof Player)) { plugin.loadConfig(); - plugin.chairEffects.restartHealing(); + if (plugin.sitEffectsEnabled) { + plugin.chairEffects.restartHealing(); + } else { + plugin.chairEffects.cancelHealing(); + } if (!plugin.msgReloaded.isEmpty()) { sender.sendMessage(plugin.msgReloaded); }