Why doesn't it error?

This commit is contained in:
destro174 committed 2022-02-24 17:16:32 +01:00
1 parent e571ea446f
commit 5834ff2c97
2 files changed
+5 -3

No files matched your search

@@ -21,7 +21,7 @@ import java.util.Optional;
public class Report {
private static final MiniMessage miniMessage = MiniMessage.get();
// private static final MiniMessage miniMessage = MiniMessage.get();
public Report(ProxyServer proxyServer) {
LiteralCommandNode<CommandSource> command = LiteralArgumentBuilder
@@ -31,7 +31,7 @@ public class Report {
.<CommandSource, String>argument("report", StringArgumentType.greedyString())
.executes(context -> {
if (!(context.getSource() instanceof Player player)) {
context.getSource().sendMessage(miniMessage.deserialize(Config.NO_CONSOLE));
context.getSource().sendMessage(Utility.parseMiniMessage(Config.NO_CONSOLE));
return 1;
}
Optional<ServerConnection> optionalServerConnection = player.getCurrentServer();