Fix export command switchprimarygroup output, and log player uuid if their username isn't included

This commit is contained in:
Luck 2017-04-07 19:59:53 +01:00
parent 029dc9f8d9
commit 132d0cf578
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public class LogEntry implements Comparable<LogEntry> {
public String getFormatted() {
return String.format(FORMAT,
actorName,
String.valueOf(actorName).equals("null") ? actor.toString() : actorName,
Character.toString(type),
actedName,
action

View File

@ -227,7 +227,7 @@ public class Exporter implements Runnable {
}
if (!user.getPrimaryGroup().getStoredValue().equalsIgnoreCase("default")) {
output.add("/luckperms user " + user.getUuid().toString() + " switchprimarygroup " + user.getPrimaryGroup());
output.add("/luckperms user " + user.getUuid().toString() + " switchprimarygroup " + user.getPrimaryGroup().getStoredValue());
}
if (!inDefault) {