mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-742: Throw an exception instead of passing null when the sender cannot be converted
This commit is contained in:
parent
85cf593df9
commit
a25c96eda7
1 changed files with 1 additions and 1 deletions
|
@ -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[]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue