Why doesn't it error?
This commit is contained in:
parent
e571ea446f
commit
5834ff2c97
|
|
@ -3,7 +3,9 @@ plugins {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("com.alttd:Galaxy-API:1.18.1-R0.1-SNAPSHOT")
|
||||
compileOnly("com.alttd:Galaxy-API:1.18.1-R0.1-SNAPSHOT") {
|
||||
exclude("net.kyori.adventure.text.minimessag")
|
||||
}
|
||||
compileOnly("net.kyori", "adventure-text-minimessage", "4.10.0-20220122.015731-43") { // Minimessage
|
||||
exclude("net.kyori")
|
||||
exclude("net.kyori.examination")
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user