Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Obey Checkstyle rules
Dieser Commit ist enthalten in:
Ursprung
3a1517f3a4
Commit
ba4ba2022e
@ -50,10 +50,12 @@ public interface CommandSource extends Audience, PermissionSubject, PermissionCh
|
|||||||
@Override
|
@Override
|
||||||
default @NotNull TriState value(String permission) {
|
default @NotNull TriState value(String permission) {
|
||||||
Tristate state = getPermissionValue(permission);
|
Tristate state = getPermissionValue(permission);
|
||||||
if (state == Tristate.TRUE)
|
if (state == Tristate.TRUE) {
|
||||||
return TriState.TRUE;
|
return TriState.TRUE;
|
||||||
if (state == Tristate.UNDEFINED)
|
}
|
||||||
|
if (state == Tristate.UNDEFINED) {
|
||||||
return TriState.NOT_SET;
|
return TriState.NOT_SET;
|
||||||
|
}
|
||||||
return TriState.FALSE;
|
return TriState.FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren