diff --git a/src/main/java/us/tastybento/bskyblock/api/commands/CompositeCommand.java b/src/main/java/us/tastybento/bskyblock/api/commands/CompositeCommand.java index d78ca4bcb..c92e1e90c 100644 --- a/src/main/java/us/tastybento/bskyblock/api/commands/CompositeCommand.java +++ b/src/main/java/us/tastybento/bskyblock/api/commands/CompositeCommand.java @@ -304,7 +304,6 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi this.usage = parent.getLabel() + " " + this.usage; parent = parent.getParent(); } - this.usage = this.usage; this.usage = this.usage.trim(); return this; } @@ -358,10 +357,9 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi * @return true if sender is a player */ protected boolean isPlayer(User user) { - return (user.getPlayer() instanceof Player); + return user.getPlayer() != null; } - /** * Set whether this command is only for players * @param onlyPlayer