Show table prefix in a different colour

This commit is contained in:
Luck 2022-04-08 21:02:31 +01:00
parent 34873914bd
commit 207e4aa9f8
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 3 additions and 2 deletions

View File

@ -176,7 +176,7 @@ public class MongoStorage implements StorageImplementation {
if (!this.prefix.isEmpty()) {
meta.put(
Component.translatable("luckperms.command.info.storage.meta.collection-prefix-key"),
Component.text(this.prefix)
Component.text(this.prefix, NamedTextColor.WHITE)
);
}

View File

@ -52,6 +52,7 @@ import me.lucko.luckperms.common.util.Uuids;
import me.lucko.luckperms.common.util.gson.GsonProvider;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import net.luckperms.api.actionlog.Action;
import net.luckperms.api.context.DefaultContextKeys;
import net.luckperms.api.context.MutableContextSet;
@ -237,7 +238,7 @@ public class SqlStorage implements StorageImplementation {
if (!tablePrefix.equals("luckperms_")) {
meta.put(
Component.translatable("luckperms.command.info.storage.meta.table-prefix-key"),
Component.text(tablePrefix)
Component.text(tablePrefix, NamedTextColor.WHITE)
);
}