From e09b8192c34737b2456ac234a2e5b2a5fb596072 Mon Sep 17 00:00:00 2001 From: ThisKarolGajda Date: Thu, 18 Aug 2022 13:41:27 +0200 Subject: [PATCH] 1.1.5 --- pom.xml | 1 + .../java/me/opkarol/opc/api/commands/OpCommandSender.java | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) 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) {