Add default kick msg component (#6886)
This commit is contained in:
@@ -2514,6 +2514,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
}
|
||||
|
||||
+ // Paper start
|
||||
+ private static final net.kyori.adventure.text.Component DEFAULT_KICK_COMPONENT = net.kyori.adventure.text.Component.translatable("multiplayer.disconnect.kicked");
|
||||
+ @Override
|
||||
+ public void kick() {
|
||||
+ this.kick(DEFAULT_KICK_COMPONENT);
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public void kick(final net.kyori.adventure.text.Component message) {
|
||||
+ org.spigotmc.AsyncCatcher.catchOp("player kick");
|
||||
|
||||
Reference in New Issue
Block a user