Properly reload heal effects on config reload
This commit is contained in:
parent
b3c5a1fcc9
commit
45dd783f89
@ -39,7 +39,11 @@ public class ChairsCommand implements CommandExecutor {
|
||||
if (args[0].equalsIgnoreCase("reload")) {
|
||||
if (sender.hasPermission("chairs.reload") || !(sender instanceof Player)) {
|
||||
plugin.loadConfig();
|
||||
if (plugin.sitEffectsEnabled) {
|
||||
plugin.chairEffects.restartHealing();
|
||||
} else {
|
||||
plugin.chairEffects.cancelHealing();
|
||||
}
|
||||
if (!plugin.msgReloaded.isEmpty()) {
|
||||
sender.sendMessage(plugin.msgReloaded);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user