private static void setPermissions(ConfigurationNode node) {
for (ConfigurationNode subNode : node.getNodes()) {
setPermissions(subNode);
}
PermissionDefault def = node.get("default", PermissionDefault.class);
String desc = node.get("description", String.class);
if (def != null || desc != null) {
Permission permission = getPermission(node.getPath().toLowerCase());
if (def != null) {
permission.setDefault(def);