Why doesn't it error?
This commit is contained in:
1 parent
e571ea446f
commit
5834ff2c97
2 files changed
+5
-3
No files matched your search
@@ -3,7 +3,9 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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
|
compileOnly("net.kyori", "adventure-text-minimessage", "4.10.0-20220122.015731-43") { // Minimessage
|
||||||
exclude("net.kyori")
|
exclude("net.kyori")
|
||||||
exclude("net.kyori.examination")
|
exclude("net.kyori.examination")
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public class Report {
|
public class Report {
|
||||||
|
|
||||||
private static final MiniMessage miniMessage = MiniMessage.get();
|
// private static final MiniMessage miniMessage = MiniMessage.get();
|
||||||
|
|
||||||
public Report(ProxyServer proxyServer) {
|
public Report(ProxyServer proxyServer) {
|
||||||
LiteralCommandNode<CommandSource> command = LiteralArgumentBuilder
|
LiteralCommandNode<CommandSource> command = LiteralArgumentBuilder
|
||||||
@@ -31,7 +31,7 @@ public class Report {
|
|||||||
.<CommandSource, String>argument("report", StringArgumentType.greedyString())
|
.<CommandSource, String>argument("report", StringArgumentType.greedyString())
|
||||||
.executes(context -> {
|
.executes(context -> {
|
||||||
if (!(context.getSource() instanceof Player player)) {
|
if (!(context.getSource() instanceof Player player)) {
|
||||||
context.getSource().sendMessage(miniMessage.deserialize(Config.NO_CONSOLE));
|
context.getSource().sendMessage(Utility.parseMiniMessage(Config.NO_CONSOLE));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
Optional<ServerConnection> optionalServerConnection = player.getCurrentServer();
|
Optional<ServerConnection> optionalServerConnection = player.getCurrentServer();
|
||||||
|
|||||||
Reference in new issue
Block a user