Update to 1.18.

This commit is contained in:
destro174 2021-12-19 00:31:09 +01:00
parent 6c35c704c3
commit b7dd650052
3 changed files with 7 additions and 15 deletions

16
pom.xml
View File

@ -31,21 +31,17 @@
<repositories>
<repository>
<id>Alttd-Nexus</id>
<url>http://leo:8081/</url>
<id>AlttdRepo-snapshots</id>
<name>Altitude Maven Repo</name>
<url>https://repo.destro.xyz/snapshots</url>
</repository>
<!-- <repository> &lt;!&ndash; can be removed when galaxy api is fixed, I fucked up when shading this in &ndash;&gt;-->
<!-- <id>dv8tion</id>-->
<!-- <name>m2-dv8tion</name>-->
<!-- <url>https://m2.dv8tion.net/releases</url>-->
<!-- </repository>-->
</repositories>
<dependencies>
<dependency><!-- Galaxy -->
<dependency>
<groupId>com.alttd</groupId>
<artifactId>galaxy-api</artifactId>
<version>1.17-R0.1-SNAPSHOT</version>
<artifactId>Galaxy-API</artifactId>
<version>1.18.1-R0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>

View File

@ -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())));

View File

@ -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.