From b7dd650052405c101e94fa4be521aaae2d1affb0 Mon Sep 17 00:00:00 2001 From: destro174 <40720638+destro174@users.noreply.github.com> Date: Sun, 19 Dec 2021 00:31:09 +0100 Subject: [PATCH] Update to 1.18. --- pom.xml | 16 ++++++---------- .../afkdectector/command/AFKCheckCommand.java | 4 ---- src/main/resources/plugin.yml | 2 +- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 52b325d..621faac 100755 --- a/pom.xml +++ b/pom.xml @@ -31,21 +31,17 @@ - Alttd-Nexus - http://leo:8081/ + AlttdRepo-snapshots + Altitude Maven Repo + https://repo.destro.xyz/snapshots - - - - - - + com.alttd - galaxy-api - 1.17-R0.1-SNAPSHOT + Galaxy-API + 1.18.1-R0.1-SNAPSHOT \ No newline at end of file diff --git a/src/main/java/com/alttd/afkdectector/command/AFKCheckCommand.java b/src/main/java/com/alttd/afkdectector/command/AFKCheckCommand.java index 57c0054..186dfda 100755 --- a/src/main/java/com/alttd/afkdectector/command/AFKCheckCommand.java +++ b/src/main/java/com/alttd/afkdectector/command/AFKCheckCommand.java @@ -36,10 +36,6 @@ public class AFKCheckCommand implements CommandExecutor, TabCompleter { sender.sendMessage(Component.text(command.getUsage(), NamedTextColor.RED)); return true; } - if (!(target instanceof Audience)) { - sender.sendMessage(Component.text(command.getUsage(), NamedTextColor.RED)); - return true; - } MiniMessage miniMessage = MiniMessage.get(); target.showTitle(Title.title(miniMessage.parse(Messages.AFKCHECKTITLE.getMessage()), miniMessage.parse(Messages.AFKCHECKSUBTITLE.getMessage()))); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index a2611dc..86acea8 100755 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ main: com.alttd.afkdectector.AFKDetector name: AFKDetector version: 2.0 -api-version: 1.16 +api-version: 1.18 author: Destro174 description: Checks if a player is afk.