Skip to content

Commit

Permalink
fix(BungeeMinecraftUtils): Remove MinecraftUtils imports (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeV220 authored Dec 7, 2022
1 parent 58e7643 commit 3d78570
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ public static void printMsg(final String input) {


public static void broadcastMsg(final @NotNull List<String> input) {
input.forEach(MinecraftUtils::broadcastMsg);
input.forEach(BungeeMinecraftUtils::broadcastMsg);
}

public static void broadcastMsg(final Object input) {
broadcastMsg(String.valueOf(input));
}

public static void printMsg(final @NotNull List<String> input) {
input.forEach(MinecraftUtils::printMsg);
input.forEach(BungeeMinecraftUtils::printMsg);
}

public static void printMsg(final Object input) {
Expand Down Expand Up @@ -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<String> newColl = Lists.newArrayList(coll);
newColl.replaceAll(MinecraftUtils::colorize);
newColl.replaceAll(BungeeMinecraftUtils::colorize);
return newColl;
}

Expand Down Expand Up @@ -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<String> newColl = Lists.newArrayList(coll);
newColl.replaceAll(MinecraftUtils::stripColor);
newColl.replaceAll(BungeeMinecraftUtils::stripColor);
return newColl;
}

public static void debug(final JavaExtension javaExtension, final Map<String, String> 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));
}
}

Expand All @@ -243,7 +243,7 @@ public static void debug(final JavaExtension javaExtension, @NotNull List<String

public static void debug(final String name, String version, final Map<String, String> 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));
}
}

Expand All @@ -257,7 +257,7 @@ public static void debug(final String name, String version, @NotNull List<String

public static void debug(final Plugin plugin, final Map<String, String> 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));
}
}

Expand Down

0 comments on commit 3d78570

Please sign in to comment.