fix saving plr perm when first creating region
All checks were successful
/ Auto-Build-App (push) Successful in 1m44s
All checks were successful
/ Auto-Build-App (push) Successful in 1m44s
This commit is contained in:
parent
0972c1a916
commit
2759034d76
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@ public class PlayerAreaPerm {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void save(Area area, boolean reload){
|
public void save(Area area, boolean reload){
|
||||||
|
File perms_folder = new File(get_path_string(SaveLocation.getSaveFolder().getPath(),"region_perms", area.name));
|
||||||
|
if (!perms_folder.exists()) {
|
||||||
|
perms_folder.mkdirs();
|
||||||
|
}
|
||||||
File perm_file = new File(get_path_string(SaveLocation.getSaveFolder().getPath(), "region_perms", area.name, filename));
|
File perm_file = new File(get_path_string(SaveLocation.getSaveFolder().getPath(), "region_perms", area.name, filename));
|
||||||
try {
|
try {
|
||||||
Json json = new Json();
|
Json json = new Json();
|
||||||
|
|
Loading…
Reference in a new issue