diff --git a/pom.xml b/pom.xml index 8e38171..8f41919 100644 --- a/pom.xml +++ b/pom.xml @@ -105,6 +105,7 @@ com.tchristofferson ConfigUpdater 2.0-SNAPSHOT + compile diff --git a/src/main/java/me/opkarol/opc/api/commands/OpCommandSender.java b/src/main/java/me/opkarol/opc/api/commands/OpCommandSender.java index 146b825..2f348ea 100644 --- a/src/main/java/me/opkarol/opc/api/commands/OpCommandSender.java +++ b/src/main/java/me/opkarol/opc/api/commands/OpCommandSender.java @@ -16,11 +16,7 @@ public boolean isPlayer() { } public @Nullable Player getFixedPlayer() { - if (!isPlayer()) { - return null; - } - - return getPlayer(); + return this.isPlayer() ? this.getPlayer() : null; } public void sendMessage(String message) {