Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Readd missing null check. Fixes #228
Dieser Commit ist enthalten in:
Ursprung
a63e905edf
Commit
39c505f6fd
@ -60,6 +60,9 @@ public class VelocityCommandManager implements CommandManager {
|
||||
args = cmdLine.substring(firstSpace).trim();
|
||||
}
|
||||
RawCommand command = commands.get(alias.toLowerCase(Locale.ENGLISH));
|
||||
if (command == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
if (!command.hasPermission(source, args)) {
|
||||
@ -140,6 +143,9 @@ public class VelocityCommandManager implements CommandManager {
|
||||
args = cmdLine.substring(firstSpace).trim();
|
||||
}
|
||||
RawCommand command = commands.get(alias.toLowerCase(Locale.ENGLISH));
|
||||
if (command == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
return command.hasPermission(source, args);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren