Properly reload heal effects on config reload

This commit is contained in:
Shevchik 2014-01-02 17:42:59 +04:00
parent b3c5a1fcc9
commit 45dd783f89

View File

@ -39,7 +39,11 @@ public class ChairsCommand implements CommandExecutor {
if (args[0].equalsIgnoreCase("reload")) { if (args[0].equalsIgnoreCase("reload")) {
if (sender.hasPermission("chairs.reload") || !(sender instanceof Player)) { if (sender.hasPermission("chairs.reload") || !(sender instanceof Player)) {
plugin.loadConfig(); plugin.loadConfig();
plugin.chairEffects.restartHealing(); if (plugin.sitEffectsEnabled) {
plugin.chairEffects.restartHealing();
} else {
plugin.chairEffects.cancelHealing();
}
if (!plugin.msgReloaded.isEmpty()) { if (!plugin.msgReloaded.isEmpty()) {
sender.sendMessage(plugin.msgReloaded); sender.sendMessage(plugin.msgReloaded);
} }