From 3d78570e573be1375a9ffcf94a22155be40e79b9 Mon Sep 17 00:00:00 2001 From: George V Date: Wed, 7 Dec 2022 16:40:08 +0200 Subject: [PATCH] fix(BungeeMinecraftUtils): Remove MinecraftUtils imports (#35) --- .../library/minecraft/BungeeMinecraftUtils.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/georgev22/library/minecraft/BungeeMinecraftUtils.java b/src/main/java/com/georgev22/library/minecraft/BungeeMinecraftUtils.java index 4150c1a..2a95593 100644 --- a/src/main/java/com/georgev22/library/minecraft/BungeeMinecraftUtils.java +++ b/src/main/java/com/georgev22/library/minecraft/BungeeMinecraftUtils.java @@ -45,7 +45,7 @@ public static void printMsg(final String input) { public static void broadcastMsg(final @NotNull List input) { - input.forEach(MinecraftUtils::broadcastMsg); + input.forEach(BungeeMinecraftUtils::broadcastMsg); } public static void broadcastMsg(final Object input) { @@ -53,7 +53,7 @@ public static void broadcastMsg(final Object input) { } public static void printMsg(final @NotNull List input) { - input.forEach(MinecraftUtils::printMsg); + input.forEach(BungeeMinecraftUtils::printMsg); } public static void printMsg(final Object input) { @@ -191,7 +191,7 @@ public static String stripColor(final String msg) { Validate.notNull(coll, "The string collection can't be null!"); Validate.noNullElements(coll, "The string collection can't have null elements!"); final List newColl = Lists.newArrayList(coll); - newColl.replaceAll(MinecraftUtils::colorize); + newColl.replaceAll(BungeeMinecraftUtils::colorize); return newColl; } @@ -223,13 +223,13 @@ public static String stripColor(final String msg) { Validate.notNull(coll, "The string collection can't be null!"); Validate.noNullElements(coll, "The string collection can't have null elements!"); final List newColl = Lists.newArrayList(coll); - newColl.replaceAll(MinecraftUtils::stripColor); + newColl.replaceAll(BungeeMinecraftUtils::stripColor); return newColl; } public static void debug(final JavaExtension javaExtension, final Map map, String @NotNull ... messages) { for (final String msg : messages) { - MinecraftUtils.printMsg(placeHolder("[" + javaExtension.getDescription().getName() + "] [Debug] [Version: " + javaExtension.getDescription().getVersion() + "] " + msg, map, false)); + BungeeMinecraftUtils.printMsg(placeHolder("[" + javaExtension.getDescription().getName() + "] [Debug] [Version: " + javaExtension.getDescription().getVersion() + "] " + msg, map, false)); } } @@ -243,7 +243,7 @@ public static void debug(final JavaExtension javaExtension, @NotNull List map, String @NotNull ... messages) { for (final String msg : messages) { - MinecraftUtils.printMsg(placeHolder("[" + name + "] [Debug] [Version: " + version + "] " + msg, map, false)); + BungeeMinecraftUtils.printMsg(placeHolder("[" + name + "] [Debug] [Version: " + version + "] " + msg, map, false)); } } @@ -257,7 +257,7 @@ public static void debug(final String name, String version, @NotNull List map, String @NotNull ... messages) { for (final String msg : messages) { - MinecraftUtils.printMsg(placeHolder("[" + plugin.getDescription().getName() + "] [Debug] [Version: " + plugin.getDescription().getVersion() + "] " + msg, map, false)); + BungeeMinecraftUtils.printMsg(placeHolder("[" + plugin.getDescription().getName() + "] [Debug] [Version: " + plugin.getDescription().getVersion() + "] " + msg, map, false)); } }