From 52209e56e0348fb59df33aa1ff764fa2c9ed26ba Mon Sep 17 00:00:00 2001 From: Shevchik Date: Wed, 2 Mar 2016 21:10:43 +0300 Subject: [PATCH] Make sit on/off command respect config messages --- src/com/cnaude/chairs/commands/ChairsCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/cnaude/chairs/commands/ChairsCommand.java b/src/com/cnaude/chairs/commands/ChairsCommand.java index a0dd8c2..50fe21a 100644 --- a/src/com/cnaude/chairs/commands/ChairsCommand.java +++ b/src/com/cnaude/chairs/commands/ChairsCommand.java @@ -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;