Updated /sc check command to correctly display if SilentChest is active or not.

This commit is contained in:
unixminecraft 2020-01-14 21:35:32 -06:00 committed by Adam
parent 19c491411f
commit 7d93bb06ad

View file

@ -40,7 +40,7 @@ public class SilentChestPluginCommand implements CommandExecutor {
Player player = (Player) sender;
if (args.length > 0 && args[0].equalsIgnoreCase("check")) {
sender.sendMessage("SilentChest is " + (plugin.getPlayerAnyChestStatus(player) ? "ON" : "OFF") + ".");
sender.sendMessage("SilentChest is " + (plugin.getPlayerSilentChestStatus(player) ? "ON" : "OFF") + ".");
return true;
}