From b3e8152fa376a8d95587ef43e9cc38aa07fd4d99 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 27 Apr 2012 04:59:53 -0500 Subject: [PATCH] We default to OP By: feildmaster --- .../src/main/java/org/bukkit/permissions/Permission.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/permissions/Permission.java b/paper-api/src/main/java/org/bukkit/permissions/Permission.java index e9ad40045a..17b6a46392 100644 --- a/paper-api/src/main/java/org/bukkit/permissions/Permission.java +++ b/paper-api/src/main/java/org/bukkit/permissions/Permission.java @@ -53,7 +53,10 @@ public class Permission { public Permission(String name, String description, PermissionDefault defaultValue, Map children) { this.name = name; this.description = (description == null) ? "" : description; - this.defaultValue = (defaultValue == null) ? PermissionDefault.FALSE : defaultValue; + + if (defaultValue != null) { + this.defaultValue = defaultValue; + } if (children != null) { this.children.putAll(children);