#33 Use non-player check instead of console-only one

This commit is contained in:
ME1312 2019-01-15 14:53:44 -05:00
parent 118ac28e4c
commit b88facf7f3
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public final class SubCommand extends CommandX {
*/
@SuppressWarnings("unchecked")
public void execute(CommandSender sender, String[] args) {
if (sender instanceof ConsoleCommandSender) {
if (!(sender instanceof ProxiedPlayer)) {
if (args.length > 0) {
if (args[0].equalsIgnoreCase("help") || args[0].equalsIgnoreCase("?")) {
sender.sendMessages(printHelp());

View File

@ -56,7 +56,7 @@ public final class SubCommand extends CommandX {
@SuppressWarnings("unchecked")
@Override
public void execute(CommandSender sender, String[] args) {
if (sender instanceof ConsoleCommandSender) {
if (!(sender instanceof ProxiedPlayer)) {
if (args.length > 0) {
if (args[0].equalsIgnoreCase("help") || args[0].equalsIgnoreCase("?")) {
sender.sendMessages(printHelp());