Skip to content

Commit

Permalink
split permission.yml into seperate group and user files
Browse files Browse the repository at this point in the history
  • Loading branch information
weaondara committed Jul 24, 2019
1 parent 7c6f1ce commit 529fa75
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 169 deletions.
6 changes: 5 additions & 1 deletion src/main/java/net/alpenblock/bungeeperms/FileExtractor.java
Expand Up @@ -15,7 +15,11 @@ public class FileExtractor

static
{
ALL_FILES.put("permissions.yml", BungeePerms.getInstance().getPlugin().getPluginFolderPath() + "/permissions.yml");
if (!new File(BungeePerms.getInstance().getPlugin().getPluginFolderPath() + "/permissions.yml").isFile())
{
ALL_FILES.put("permissions.groups.yml", BungeePerms.getInstance().getPlugin().getPluginFolderPath() + "/permissions.groups.yml");
ALL_FILES.put("permissions.users.yml", BungeePerms.getInstance().getPlugin().getPluginFolderPath() + "/permissions.users.yml");
}
ALL_FILES.put("lang/EN-gb.yml", BungeePerms.getInstance().getPlugin().getPluginFolderPath() + "/lang/EN-gb.yml");
ALL_FILES.put("lang/DE-de.yml", BungeePerms.getInstance().getPlugin().getPluginFolderPath() + "/lang/DE-de.yml");
}
Expand Down

0 comments on commit 529fa75

Please sign in to comment.