continue;
}
UserIdent ident = new UserIdent(uuid, username);
// Load permissions
PermissionList permissions = zone.getOrCreatePlayerPermissions(ident);
for (Entry permission : p.entrySet())
{
permissions.put((String) permission.getKey(), (String) permission.getValue());
}
}
catch (IllegalArgumentException | IOException e)
{
OutputHandler.felog.severe("Error reading permissions from " + path.getAbsolutePath());
}
}
}
if (groupsPath.exists())
{
for (File file : groupsPath.listFiles(permissionFilter))
{
try
{
Properties p = new Properties();
p.load(new BufferedInputStream(new FileInputStream(file)));
// Get group
String groupName = file.getName().substring(0, file.getName().length() - PERMISSION_FILE_EXT.length());
// Load permissions
PermissionList permissions = zone.getOrCreateGroupPermissions(groupName);
for (Entry permission : p.entrySet())
{
permissions.put((String) permission.getKey(), (String) permission.getValue());
}
}
catch (IllegalArgumentException | IOException e)
{
OutputHandler.felog.severe("Error reading permissions from " + path.getAbsolutePath());