Make sit on/off command respect config messages

This commit is contained in:
Shevchik 2016-03-02 21:10:43 +03:00
parent c3acea724c
commit 52209e56e0

View File

@ -42,10 +42,10 @@ public class ChairsCommand implements CommandExecutor {
Player player = (Player) sender;
if (args[0].equalsIgnoreCase("off")) {
plugin.sitDisabled.add(player.getName());
player.sendMessage("Disabled sitting");
player.sendMessage(plugin.msgDisabled);
} else if (args[0].equalsIgnoreCase("on")) {
plugin.sitDisabled.remove(player.getName());
player.sendMessage("Enabled sitting");
player.sendMessage(plugin.msgDisabled);
}
}
return true;