3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2025-01-07 22:00:24 +01:00

Add support for rcon console command senders (#5261)

RemoteConsoleCommandSender does not inherit ConsoleCommandSender, so we gotta handle it explicitly.
Dieser Commit ist enthalten in:
Alex 2025-01-04 14:28:54 +01:00 committet von GitHub
Ursprung 623ec2bb8f
Commit f1ed841e07
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -29,6 +29,7 @@ import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.bungeecord.BungeeComponentSerializer;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.command.RemoteConsoleCommandSender;
import org.bukkit.entity.Player;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@ -76,7 +77,7 @@ public class SpigotCommandSource implements GeyserCommandSource {
@Override
public boolean isConsole() {
return handle instanceof ConsoleCommandSender;
return handle instanceof ConsoleCommandSender || handle instanceof RemoteConsoleCommandSender;
}
@Override