From f260473070f9701fd8041d169b09b096976b8903 Mon Sep 17 00:00:00 2001
From: BenceX100 <52270269+BenceX100@users.noreply.github.com>
Date: Sun, 11 Aug 2024 12:49:56 +0200
Subject: [PATCH] 1.13.2
---
pom.xml | 4 ++--
src/main/java/com/artillexstudios/axgraves/AxGraves.java | 1 +
.../com/artillexstudios/axgraves/commands/Commands.java | 7 ++++---
.../com/artillexstudios/axgraves/utils/UpdateNotifier.java | 6 ++++--
src/main/resources/messages.yml | 2 +-
5 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/pom.xml b/pom.xml
index a4e527e..0938ab1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.artillexstudios
AxGraves
- 1.13.1
+ 1.13.2
jar
AxGraves
@@ -106,7 +106,7 @@
com.artillexstudios.axapi
axapi
- 1.4.292
+ 1.4.329
compile
all
diff --git a/src/main/java/com/artillexstudios/axgraves/AxGraves.java b/src/main/java/com/artillexstudios/axgraves/AxGraves.java
index 057492a..2f32b3f 100644
--- a/src/main/java/com/artillexstudios/axgraves/AxGraves.java
+++ b/src/main/java/com/artillexstudios/axgraves/AxGraves.java
@@ -84,6 +84,7 @@ public void disable() {
}
public void updateFlags() {
+ FeatureFlags.USE_LEGACY_HEX_FORMATTER.set(true);
FeatureFlags.PACKET_ENTITY_TRACKER_ENABLED.set(true);
FeatureFlags.HOLOGRAM_UPDATE_TICKS.set(5L);
}
diff --git a/src/main/java/com/artillexstudios/axgraves/commands/Commands.java b/src/main/java/com/artillexstudios/axgraves/commands/Commands.java
index 0e1b07e..c150fcc 100644
--- a/src/main/java/com/artillexstudios/axgraves/commands/Commands.java
+++ b/src/main/java/com/artillexstudios/axgraves/commands/Commands.java
@@ -7,6 +7,7 @@
import com.artillexstudios.axgraves.grave.SpawnedGraves;
import org.bukkit.Location;
import org.bukkit.World;
+import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import revxrsal.commands.annotation.Command;
@@ -21,7 +22,7 @@ public class Commands {
@DefaultFor({"~", "~ help"})
@CommandPermission("axgraves.help")
- public void help(@NotNull Player sender) {
+ public void help(@NotNull CommandSender sender) {
for (String m : MESSAGES.getStringList("help")) {
sender.sendMessage(StringUtils.formatToString(m));
}
@@ -29,13 +30,13 @@ public void help(@NotNull Player sender) {
@Subcommand("reload")
@CommandPermission("axgraves.reload")
- public void reload(@NotNull Player sender) {
+ public void reload(@NotNull CommandSender sender) {
new SubCommandReload().subCommand(sender);
}
@Subcommand("list")
@CommandPermission("axgraves.list")
- public void list(@NotNull Player sender) {
+ public void list(@NotNull CommandSender sender) {
new SubCommandList().subCommand(sender);
}
diff --git a/src/main/java/com/artillexstudios/axgraves/utils/UpdateNotifier.java b/src/main/java/com/artillexstudios/axgraves/utils/UpdateNotifier.java
index b2b2339..c3b22c7 100644
--- a/src/main/java/com/artillexstudios/axgraves/utils/UpdateNotifier.java
+++ b/src/main/java/com/artillexstudios/axgraves/utils/UpdateNotifier.java
@@ -41,9 +41,11 @@ public UpdateNotifier(AxPlugin instance, int id) {
this.newest = isLatest(current);
if (latest == null || newest) return;
- Bukkit.getConsoleSender().sendMessage(getMessage());
+ Scheduler.get().runLaterAsync(t2 -> {
+ Bukkit.getConsoleSender().sendMessage(getMessage());
+ }, 50L);
t.cancel();
- }, 50L, time);
+ }, 0, time);
}
@EventHandler
diff --git a/src/main/resources/messages.yml b/src/main/resources/messages.yml
index ac96004..15f7ed1 100644
--- a/src/main/resources/messages.yml
+++ b/src/main/resources/messages.yml
@@ -28,7 +28,7 @@ grave-list:
grave: "FF00FF[TP] FFAAFF%player% &7- FFAAFF%world% %x%, %y%, %z% &7(%time%)"
no-graves: "FFAAFFThere are no graves!"
-update-notifier: "FF88FFThere is a new version of the plugin available! DDDDDD(FFFFFFcurrent: FF0000%current% DDDDDD| FFFFFFlatest: FF00%latest%DDDDDD)"
+update-notifier: "FF88FFThere is a new version of AxGraves available! DDDDDD(FFFFFFcurrent: FF0000%current% DDDDDD| FFFFFFlatest: FF00%latest%DDDDDD)"
# do not edit
version: 4
\ No newline at end of file