From 0ae59bd3e64f2c6c4d4a7528c003a50a2b6129ee Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 21 Dec 2016 21:26:22 +0000 Subject: [PATCH] show group weight value in the group info command output --- .../common/commands/group/GroupInfo.java | 1 + .../lucko/luckperms/common/constants/Message.java | 15 ++++++++------- default-lang.yml | 13 +++++++------ 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/group/GroupInfo.java b/common/src/main/java/me/lucko/luckperms/common/commands/group/GroupInfo.java index 2eec50ea..842733ac 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/group/GroupInfo.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/group/GroupInfo.java @@ -49,6 +49,7 @@ public class GroupInfo extends SubCommand { Message.GROUP_INFO_GENERAL.send(sender, group.getId(), group.getDisplayName(), + group.getWeight().isPresent() ? group.getWeight().getAsInt() : "None", group.getPermanentNodes().size(), group.getTemporaryNodes().size(), group.getPrefixNodes().size(), diff --git a/common/src/main/java/me/lucko/luckperms/common/constants/Message.java b/common/src/main/java/me/lucko/luckperms/common/constants/Message.java index a9106245..def0a64b 100644 --- a/common/src/main/java/me/lucko/luckperms/common/constants/Message.java +++ b/common/src/main/java/me/lucko/luckperms/common/constants/Message.java @@ -325,13 +325,14 @@ public enum Message { GROUP_INFO_GENERAL( "{PREFIX}&b&l> &bGroup Info: &f{0}" + "\n" + - "{PREFIX}&f- &3Display Name: &f{1}" + "\n" + - "{PREFIX}&f- &aCounts:" + "\n" + - "{PREFIX}&f- &3Permissions: &a{2}" + "\n" + - "{PREFIX}&f- &3Temporary Permissions: &a{3}" + "\n" + - "{PREFIX}&f- &3Prefixes: &a{4}" + "\n" + - "{PREFIX}&f- &3Suffixes: &a{5}" + "\n" + - "{PREFIX}&f- &3Meta: &a{6}", + "{PREFIX}&f- &3Display Name: &f{1}" + "\n" + + "{PREFIX}&f- &3Weight: &f{2}" + "\n" + + "{PREFIX}&f- &aCounts:" + "\n" + + "{PREFIX}&f- &3Permissions: &a{3}" + "\n" + + "{PREFIX}&f- &3Temporary Permissions: &a{4}" + "\n" + + "{PREFIX}&f- &3Prefixes: &a{5}" + "\n" + + "{PREFIX}&f- &3Suffixes: &a{6}" + "\n" + + "{PREFIX}&f- &3Meta: &a{7}", false ), GROUP_SET_WEIGHT("&aSet weight to &b{0}&a for group &b{1}&a.", true), diff --git a/default-lang.yml b/default-lang.yml index cb3a8608..376565b3 100644 --- a/default-lang.yml +++ b/default-lang.yml @@ -273,13 +273,14 @@ user-showpos: "&aShowing &b{0}&a's position on track &b{1}&a.{2}" group-info-general: > {PREFIX}&b&l> &bGroup Info: &f{0}\n - {PREFIX}&f- &3Diaplay Name: &f{1}\n + {PREFIX}&f- &3Display Name: &f{1}\n + {PREFIX}&f- &3Weight: &f{2}\n {PREFIX}&f- &aCounts:\n - {PREFIX}&f- &3Permissions: &a{2}\n - {PREFIX}&f- &3Temporary Permissions: &a{3}\n - {PREFIX}&f- &3Prefixes: &a{4}\n - {PREFIX}&f- &3Suffixes: &a{5}\n - {PREFIX}&f- &3Meta: &a{6} + {PREFIX}&f- &3Permissions: &a{3}\n + {PREFIX}&f- &3Temporary Permissions: &a{4}\n + {PREFIX}&f- &3Prefixes: &a{5}\n + {PREFIX}&f- &3Suffixes: &a{6}\n + {PREFIX}&f- &3Meta: &a{7} group-set-weight: "&aSet weight to &b{0}&a for group &b{1}&a." track-info: >