geforkt von Mirrors/Velocity
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