mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-30 22:53:27 +01:00
Fix group expiry time not being exported (#474)
This commit is contained in:
parent
67602b8d85
commit
214929e5e5
@ -140,12 +140,11 @@ public class NodeFactory {
|
||||
sb.append("/luckperms ").append(group ? "group " : "user ").append(id).append(" ");
|
||||
|
||||
if (node.isGroupNode()) {
|
||||
if (node.isTemporary()) {
|
||||
sb.append(set ? "parent addtemp " : "parent removetemp ");
|
||||
sb.append(node.getGroupName());
|
||||
} else {
|
||||
sb.append(set ? "parent add " : "parent remove ");
|
||||
sb.append(node.getGroupName());
|
||||
sb.append(node.isTemporary() ? (set ? "parent addtemp " : "parent removetemp ") : (set ? "parent add " : "parent remove "));
|
||||
sb.append(node.getGroupName());
|
||||
|
||||
if (node.isTemporary() && set) {
|
||||
sb.append(" ").append(node.getExpiryUnixTime());
|
||||
}
|
||||
|
||||
return appendContextToCommand(sb, node).toString();
|
||||
@ -155,7 +154,6 @@ public class NodeFactory {
|
||||
ChatMetaType type = node.isPrefix() ? ChatMetaType.PREFIX : ChatMetaType.SUFFIX;
|
||||
String typeName = type.name().toLowerCase();
|
||||
|
||||
|
||||
sb.append(node.isTemporary() ? (set ? "meta addtemp" + typeName + " " : "meta removetemp" + typeName + " ") : (set ? "meta add" + typeName + " " : "meta remove" + typeName + " "));
|
||||
sb.append(type.getEntry(node).getKey()).append(" ");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user