diff --git a/src/main/java/net/coreprotect/utility/ChatUtils.java b/src/main/java/net/coreprotect/utility/ChatUtils.java index 37acdec..496ab48 100644 --- a/src/main/java/net/coreprotect/utility/ChatUtils.java +++ b/src/main/java/net/coreprotect/utility/ChatUtils.java @@ -8,6 +8,7 @@ import net.kyori.adventure.text.event.HoverEvent; import net.kyori.adventure.text.format.NamedTextColor; import net.kyori.adventure.text.format.TextDecoration; import net.kyori.adventure.text.minimessage.MiniMessage; +import org.bukkit.Bukkit; import org.bukkit.command.ConsoleCommandSender; import java.text.DecimalFormat; @@ -47,6 +48,19 @@ public class ChatUtils { return message.append("").toString(); // griefus } + public static String getShowCoordinatesButton(int x, int y, int z) { + return "" + x + " " + + "Y: " + y + " " + + "Z: " + z + " " + + "\">[координаты]"; + } + public static String getTeleportButton(int worldId, int x, int y, int z) { + // May break if worldId index is outdated + return "[телепортироваться]"; + } + public static String getPageNavigation(String command, int page, int totalPages) { StringBuilder message = new StringBuilder();