mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-04 07:28:04 +01:00
Merge branch 'refs/heads/groupmanager'
This commit is contained in:
commit
eda827b244
@ -142,11 +142,6 @@ groups:
|
|||||||
|
|
||||||
g:bukkit_admin:
|
g:bukkit_admin:
|
||||||
permissions:
|
permissions:
|
||||||
- bPermissions.admin
|
|
||||||
- bPermissions.demote.admin
|
|
||||||
- bPermissions.gui
|
|
||||||
- bPermissions.iplock.lock
|
|
||||||
- bPermissions.promote.admin
|
|
||||||
- bukkit.broadcast
|
- bukkit.broadcast
|
||||||
- bukkit.broadcast.admin
|
- bukkit.broadcast.admin
|
||||||
- bukkit.command
|
- bukkit.command
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
# Group inheritance
|
||||||
|
# any inherited groups prefixed with a g: are global groups
|
||||||
|
# These groups are defined in the globalgroups.yml
|
||||||
|
# and can be inherited in any worlds groups/users.yml.
|
||||||
|
#
|
||||||
|
# Groups without the g: prefix are groups local to this world
|
||||||
|
# and defined in the this groups.yml file.
|
||||||
|
|
||||||
groups:
|
groups:
|
||||||
Default:
|
Default:
|
||||||
default: true
|
default: true
|
||||||
|
@ -881,6 +881,7 @@ public class WorldDataHolder {
|
|||||||
Map<String, Object> root = new HashMap<String, Object>();
|
Map<String, Object> root = new HashMap<String, Object>();
|
||||||
|
|
||||||
Map<String, Object> groupsMap = new HashMap<String, Object>();
|
Map<String, Object> groupsMap = new HashMap<String, Object>();
|
||||||
|
|
||||||
root.put("groups", groupsMap);
|
root.put("groups", groupsMap);
|
||||||
for (String groupKey : ph.groups.keySet()) {
|
for (String groupKey : ph.groups.keySet()) {
|
||||||
Group group = ph.groups.get(groupKey);
|
Group group = ph.groups.get(groupKey);
|
||||||
@ -910,9 +911,23 @@ public class WorldDataHolder {
|
|||||||
opt.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
opt.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
||||||
final Yaml yaml = new Yaml(opt);
|
final Yaml yaml = new Yaml(opt);
|
||||||
try {
|
try {
|
||||||
yaml.dump(root, new OutputStreamWriter(new FileOutputStream(groupsFile), "UTF-8"));
|
OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(groupsFile), "UTF-8");
|
||||||
|
|
||||||
|
String newLine = System.getProperty("line.separator");
|
||||||
|
|
||||||
|
out.write("# Group inheritance" + newLine);
|
||||||
|
out.write("# any inherited groups prefixed with a g: are global groups" + newLine);
|
||||||
|
out.write("# These groups are defined in the globalgroups.yml" + newLine);
|
||||||
|
out.write("# and can be inherited in any worlds groups/users.yml." + newLine);
|
||||||
|
out.write("#" + newLine);
|
||||||
|
out.write("# Groups without the g: prefix are groups local to this world" + newLine);
|
||||||
|
out.write("# and defined in the this groups.yml file." + newLine);
|
||||||
|
out.write(newLine);
|
||||||
|
|
||||||
|
yaml.dump(root, out);
|
||||||
} catch (UnsupportedEncodingException ex) {
|
} catch (UnsupportedEncodingException ex) {
|
||||||
} catch (FileNotFoundException ex) {
|
} catch (FileNotFoundException ex) {
|
||||||
|
} catch (IOException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user