Fix ops not receiving all permission nodes

This commit is contained in:
Luck 2016-09-09 18:00:38 +01:00
parent 89ff4cfa40
commit fc230291d3
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -267,11 +267,11 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
"luckperms." + e.getKey() + ".*", def, "luckperms." + e.getKey() + ".*", def,
e.getValue().stream() e.getValue().stream()
.map(tag -> "luckperms." + e.getKey() + "." + tag) .map(tag -> "luckperms." + e.getKey() + "." + tag)
.collect(Collectors.toMap(s -> s, s -> false)) .collect(Collectors.toMap(s -> s, s -> true))
) )
); );
} }
pm.addPermission(new Permission("luckperms.*", def, all.stream().collect(Collectors.toMap(s -> s, s -> false)))); pm.addPermission(new Permission("luckperms.*", def, all.stream().collect(Collectors.toMap(s -> s, s -> true))));
} }
} }