manulistp <name> + now only lists perms with a value of true

This commit is contained in:
ElgarL 2011-09-24 15:55:53 +01:00
parent d18a47a643
commit ff7cc5aec9

View file

@ -190,7 +190,8 @@ public class BukkitPermissions {
perms.add("Effective Permissions:");
for(PermissionAttachmentInfo info : player.getEffectivePermissions()){
perms.add(" " + info.getPermission() + " = " + info.getValue());
if (info.getValue() == true)
perms.add(" " + info.getPermission() + " = " + info.getValue());
}
return perms;
}