Why doesn't it error?
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user