mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
refactor: add home delimiter to status dump
This commit is contained in:
2 files changed
+3
No files matched your search
@@ -96,6 +96,7 @@ public interface DumpProvider {
|
||||
Map.entry("Database Type", StatusLine.DATABASE_TYPE.getValue(getPlugin())),
|
||||
Map.entry("Database Local", StatusLine.IS_DATABASE_LOCAL.getValue(getPlugin())),
|
||||
Map.entry("Economy Mode", StatusLine.ECONOMY_MODE.getValue(getPlugin())),
|
||||
Map.entry("Home Delimiter", StatusLine.HOME_DELIMITER.getValue(getPlugin())),
|
||||
Map.entry("Cross Server", StatusLine.IS_CROSS_SERVER.getValue(getPlugin())),
|
||||
Map.entry("Server Name", StatusLine.SERVER_NAME.getValue(getPlugin())),
|
||||
Map.entry("Message Broker", StatusLine.MESSAGE_BROKER_TYPE.getValue(getPlugin())),
|
||||
|
||||
@@ -26,6 +26,7 @@ import net.kyori.adventure.text.format.TextColor;
|
||||
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.importer.Importer;
|
||||
import net.william278.huskhomes.position.Home;
|
||||
import org.apache.commons.text.WordUtils;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -52,6 +53,7 @@ public enum StatusLine {
|
||||
REDIS_USING_SSL(plugin -> getBoolean(!plugin.getSettings().getCrossServer().getRedis().isUseSsl())),
|
||||
IS_REDIS_LOCAL(plugin -> getLocalhostBoolean(plugin.getSettings().getCrossServer().getRedis().getHost())),
|
||||
ECONOMY_MODE(plugin -> getBoolean(plugin.isUsingEconomy())),
|
||||
HOME_DELIMITER(plugin -> Component.text(Home.getDelimiter())),
|
||||
LOADED_HOOKS(plugin -> Component.join(
|
||||
JoinConfiguration.commas(true),
|
||||
plugin.getHooks().stream().filter(hook -> !(hook instanceof Importer))
|
||||
|
||||
Reference in new issue
Block a user