mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-29 02:30:01 +00:00
Fix group name when using wildcard group definitions.
This commit is contained in:
parent
55e8aa765b
commit
3356db080a
1 changed files with 4 additions and 3 deletions
|
@ -148,7 +148,7 @@ public class Commandlist extends EssentialsCommand
|
|||
// If the group value is an asterisk, then skip it, and handle it later
|
||||
if (groupValue.equals("*"))
|
||||
{
|
||||
asterisk.add(configGroup);
|
||||
asterisk.add(oConfigGroup);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -215,16 +215,17 @@ public class Commandlist extends EssentialsCommand
|
|||
for (String onlineGroup : onlineGroups)
|
||||
{
|
||||
List<User> users = playerList.get(onlineGroup);
|
||||
String groupName = asterisk.isEmpty() ? users.get(0).getGroup() : onlineGroup;
|
||||
|
||||
if (ess.getPermissionsHandler().getName().equals("ConfigPermissions"))
|
||||
{
|
||||
onlineGroup = _("connectedPlayers");
|
||||
groupName = _("connectedPlayers");
|
||||
}
|
||||
if (users == null || users.isEmpty())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
String groupName = users.get(0).getGroup();
|
||||
|
||||
sender.sendMessage(outputFormat(groupName, listUsers(users)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue