mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Change the way static contexts are displayed in /lp info
This commit is contained in:
parent
ec7a5321a6
commit
048768007d
@ -25,11 +25,11 @@
|
||||
|
||||
package me.lucko.luckperms.common.commands.misc;
|
||||
|
||||
import me.lucko.luckperms.api.context.ImmutableContextSet;
|
||||
import me.lucko.luckperms.common.command.CommandResult;
|
||||
import me.lucko.luckperms.common.command.abstraction.SingleCommand;
|
||||
import me.lucko.luckperms.common.command.access.CommandPermission;
|
||||
import me.lucko.luckperms.common.command.utils.MessageUtils;
|
||||
import me.lucko.luckperms.common.context.ContextSetFormatter;
|
||||
import me.lucko.luckperms.common.locale.LocaleManager;
|
||||
import me.lucko.luckperms.common.locale.command.CommandSpec;
|
||||
import me.lucko.luckperms.common.locale.message.Message;
|
||||
@ -61,9 +61,10 @@ public class InfoCommand extends SingleCommand {
|
||||
Message.INFO_STORAGE_META.send(sender, e.getKey(), formatValue(e.getValue()));
|
||||
}
|
||||
|
||||
ImmutableContextSet staticContext = plugin.getContextManager().getStaticContext();
|
||||
Message.INFO_MIDDLE.send(sender,
|
||||
plugin.getMessagingService().map(InternalMessagingService::getName).orElse("None"),
|
||||
ContextSetFormatter.toMinimalString(plugin.getContextManager().getStaticContext()).orElse("None"),
|
||||
staticContext.isEmpty() ? "None" : MessageUtils.contextSetToString(plugin.getLocaleManager(), staticContext),
|
||||
plugin.getBootstrap().getPlayerCount(),
|
||||
plugin.getConnectionListener().getUniqueConnections().size(),
|
||||
DurationFormatter.CONCISE_LOW_ACCURACY.format((System.currentTimeMillis() - plugin.getBootstrap().getStartupTime()) / 1000L),
|
||||
|
Loading…
Reference in New Issue
Block a user