Skip to content

Commit 30f3508

Browse files
committed
default to undefined
1 parent 7c80f55 commit 30f3508

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

shared/src/main/java/me/xginko/aef/utils/permissions/LuckPermsPermissionHandler.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ public TriState permissionValue(CommandSender commandSender, String permission)
2929
return TriState.TRUE;
3030
case FALSE:
3131
return TriState.FALSE;
32-
case UNDEFINED:
33-
return TriState.UNDEFINED;
3432
default:
35-
throw new IllegalArgumentException();
33+
return TriState.UNDEFINED;
3634
}
3735
}
3836

0 commit comments

Comments
 (0)