geforkt von Mirrors/Paper
SPIGOT-742: Throw an exception instead of passing null when the sender cannot be converted
By: Thinkofdeath <thinkofdeath@spigotmc.org>
Dieser Commit ist enthalten in:
Ursprung
290b584eb4
Commit
3b1579527f
@ -161,7 +161,7 @@ public final class VanillaCommandWrapper extends VanillaCommand {
|
|||||||
if (sender instanceof ProxiedCommandSender) {
|
if (sender instanceof ProxiedCommandSender) {
|
||||||
return ((ProxiedNativeCommandSender) sender).getHandle();
|
return ((ProxiedNativeCommandSender) sender).getHandle();
|
||||||
}
|
}
|
||||||
return null;
|
throw new IllegalArgumentException("Cannot make " + sender + " a vanilla command listener");
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getPlayerListSize(String as[]) {
|
private int getPlayerListSize(String as[]) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren