Don't apply the default group when exporting users

This commit is contained in:
Luck 2016-09-10 16:53:04 +01:00
parent f9025c7a51
commit 37749e5829
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -128,6 +128,9 @@ public class ExportCommand extends SingleMainCommand {
User user = plugin.getUserManager().get(uuid); User user = plugin.getUserManager().get(uuid);
for (Node node : user.getNodes()) { for (Node node : user.getNodes()) {
if (node.isGroupNode() && node.getGroupName().equalsIgnoreCase("default")) {
continue;
}
write(writer, nodeToString(node, user.getUuid().toString(), false)); write(writer, nodeToString(node, user.getUuid().toString(), false));
} }