mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
All permissions now default to OP unless stated otherwise.
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
acd8d918f1
commit
1caebea71d
1 changed files with 1 additions and 3 deletions
|
@ -15,7 +15,7 @@ import org.bukkit.plugin.PluginManager;
|
||||||
* Represents a unique permission that may be attached to a {@link Permissible}
|
* Represents a unique permission that may be attached to a {@link Permissible}
|
||||||
*/
|
*/
|
||||||
public class Permission {
|
public class Permission {
|
||||||
public static final PermissionDefault DEFAULT_PERMISSION = PermissionDefault.FALSE;
|
public static final PermissionDefault DEFAULT_PERMISSION = PermissionDefault.OP;
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
private final Map<String, Boolean> children = new LinkedHashMap<String, Boolean>();
|
private final Map<String, Boolean> children = new LinkedHashMap<String, Boolean>();
|
||||||
|
@ -316,8 +316,6 @@ public class Permission {
|
||||||
children.put(entry.getKey(), (Boolean)entry.getValue());
|
children.put(entry.getKey(), (Boolean)entry.getValue());
|
||||||
} else if ((entry.getValue() instanceof Map)) {
|
} else if ((entry.getValue() instanceof Map)) {
|
||||||
try {
|
try {
|
||||||
System.out.println("Going to make new child " + (String)entry.getKey() + " perm for " + name);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Permission perm = loadPermission((String)entry.getKey(), (Map<String, Object>)entry.getValue(), def, output);
|
Permission perm = loadPermission((String)entry.getKey(), (Map<String, Object>)entry.getValue(), def, output);
|
||||||
|
|
Loading…
Reference in a new issue