Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 04:50:06 +01:00
SPIGOT-742: Throw an exception instead of passing null when the sender cannot be converted
Dieser Commit ist enthalten in:
Ursprung
85cf593df9
Commit
a25c96eda7
@ -161,7 +161,7 @@ public final class VanillaCommandWrapper extends VanillaCommand {
|
||||
if (sender instanceof ProxiedCommandSender) {
|
||||
return ((ProxiedNativeCommandSender) sender).getHandle();
|
||||
}
|
||||
return null;
|
||||
throw new IllegalArgumentException("Cannot make " + sender + " a vanilla command listener");
|
||||
}
|
||||
|
||||
private int getPlayerListSize(String as[]) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren