mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
feat: add status command, refactor hooks, fix EssX import
This commit is contained in:
24 files changed
+172
-53
No files matched your search
@@ -20,6 +20,7 @@
|
||||
package net.william278.huskhomes.hook;
|
||||
|
||||
import net.william278.huskhomes.BukkitHuskHomes;
|
||||
import net.william278.huskhomes.config.Settings;
|
||||
import net.william278.huskhomes.importer.EssentialsXImporter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -31,24 +32,24 @@ public interface BukkitHookProvider extends HookProvider {
|
||||
@NotNull
|
||||
default List<Hook> getAvailableHooks() {
|
||||
final List<Hook> hooks = HookProvider.super.getAvailableHooks();
|
||||
final Settings settings = getPlugin().getSettings();
|
||||
|
||||
// Hooks
|
||||
if (getPlugin().getSettings().getEconomy().isEnabled() && isDependencyAvailable("Vault")) {
|
||||
getHooks().add(new VaultEconomyHook(getPlugin()));
|
||||
if (isDependencyAvailable("Vault") && settings.getEconomy().isEnabled()) {
|
||||
hooks.add(new VaultEconomyHook(getPlugin()));
|
||||
}
|
||||
if (isDependencyAvailable("PlaceholderAPI")) {
|
||||
getHooks().add(new PlaceholderAPIHook(getPlugin()));
|
||||
hooks.add(new PlaceholderAPIHook(getPlugin()));
|
||||
}
|
||||
|
||||
// Importers todo TOO EARLY, race condition as we OMIT EssX on Paper for compat reasons...
|
||||
// Importers
|
||||
if (isDependencyAvailable("Essentials")) {
|
||||
getHooks().add(new EssentialsXImporter(getPlugin()));
|
||||
hooks.add(new EssentialsXImporter(getPlugin()));
|
||||
}
|
||||
|
||||
return hooks;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
default boolean isDependencyAvailable(@NotNull String name) {
|
||||
return getPlugin().getServer().getPluginManager().getPlugin(name) != null;
|
||||
|
||||
@@ -36,7 +36,7 @@ import java.util.logging.Level;
|
||||
|
||||
@PluginHook(
|
||||
name = "EssentialsX",
|
||||
register = PluginHook.Register.ON_LOAD
|
||||
register = PluginHook.Register.AFTER_LOAD
|
||||
)
|
||||
public class EssentialsXImporter extends Importer {
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ public interface HuskHomes extends Task.Supplier, EventDispatcher, SavePositionP
|
||||
default void load() {
|
||||
try {
|
||||
loadConfigs();
|
||||
loadHooks();
|
||||
loadHooks(PluginHook.Register.ON_LOAD);
|
||||
registerHooks(PluginHook.Register.ON_LOAD);
|
||||
} catch (Throwable e) {
|
||||
log(Level.SEVERE, "An error occurred whilst loading HuskHomes", e);
|
||||
@@ -90,6 +90,7 @@ public interface HuskHomes extends Task.Supplier, EventDispatcher, SavePositionP
|
||||
loadManager();
|
||||
loadRandomTeleportEngine();
|
||||
loadListeners();
|
||||
loadHooks(PluginHook.Register.ON_ENABLE);
|
||||
registerHooks(PluginHook.Register.ON_ENABLE);
|
||||
loadAPI();
|
||||
if (getPluginVersion().getMetadata().isBlank()) {
|
||||
@@ -102,6 +103,7 @@ public interface HuskHomes extends Task.Supplier, EventDispatcher, SavePositionP
|
||||
}
|
||||
log(Level.INFO, String.format("Successfully enabled HuskHomes v%s", getPluginVersion()));
|
||||
checkForUpdates();
|
||||
loadAfterLoadHooks();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -112,7 +114,7 @@ public interface HuskHomes extends Task.Supplier, EventDispatcher, SavePositionP
|
||||
default void shutdown() {
|
||||
log(Level.INFO, String.format("Disabling HuskHomes v%s...", getPluginVersion()));
|
||||
try {
|
||||
unloadHooks();
|
||||
unloadHooks(PluginHook.Register.values());
|
||||
closeDatabase();
|
||||
closeBroker();
|
||||
cancelTasks();
|
||||
|
||||
@@ -21,20 +21,25 @@ package net.william278.huskhomes.command;
|
||||
|
||||
import de.themoep.minedown.adventure.MineDown;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.JoinConfiguration;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
import net.william278.desertwell.about.AboutMenu;
|
||||
import net.william278.desertwell.util.UpdateChecker;
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.config.Locales;
|
||||
import net.william278.huskhomes.hook.PluginHook;
|
||||
import net.william278.huskhomes.importer.Importer;
|
||||
import net.william278.huskhomes.user.CommandUser;
|
||||
import net.william278.huskhomes.user.SavedUser;
|
||||
import net.william278.huskhomes.user.User;
|
||||
import net.william278.paginedown.PaginatedList;
|
||||
import org.apache.commons.text.WordUtils;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
import java.util.logging.Level;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.IntStream;
|
||||
@@ -45,12 +50,12 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
"about", false,
|
||||
"help", false,
|
||||
"reload", true,
|
||||
"status", true,
|
||||
"import", true,
|
||||
"delete", true,
|
||||
"update", true
|
||||
);
|
||||
|
||||
private boolean importersLoaded = false;
|
||||
private final UpdateChecker updateChecker;
|
||||
private final AboutMenu aboutMenu;
|
||||
|
||||
@@ -107,30 +112,17 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
|
||||
switch (action.toLowerCase()) {
|
||||
case "about" -> executor.sendMessage(aboutMenu.toComponent());
|
||||
case "help" -> executor.sendMessage(getCommandList(executor)
|
||||
.getNearestValidPage(parseIntArg(args, 1).orElse(1)));
|
||||
case "reload" -> {
|
||||
try {
|
||||
plugin.loadConfigs();
|
||||
} catch (Throwable e) {
|
||||
plugin.log(Level.SEVERE, "Failed to reload config files", e);
|
||||
executor.sendMessage(new MineDown(
|
||||
"[Error:](#ff3300) [Failed to reload the plugin. Check console for errors.](#ff7e5e)"
|
||||
));
|
||||
return;
|
||||
}
|
||||
|
||||
executor.sendMessage(new MineDown(
|
||||
"[HuskHomes](#00fb9a bold) [| Reloaded config & message files.](#00fb9a)\n"
|
||||
+ "[ℹ If you have modified the database or cross-server message broker settings,"
|
||||
+ " you need to restart your server for these changes to take effect.](gray)"
|
||||
case "help" -> executor.sendMessage(
|
||||
getCommandList(executor).getNearestValidPage(parseIntArg(args, 1).orElse(1))
|
||||
);
|
||||
case "status" -> {
|
||||
getPlugin().getLocales().getLocale("system_status_header").ifPresent(executor::sendMessage);
|
||||
executor.sendMessage(Component.join(
|
||||
JoinConfiguration.newlines(),
|
||||
Arrays.stream(StatusLine.values()).map(s -> s.get(plugin)).toList()
|
||||
));
|
||||
}
|
||||
case "import" -> {
|
||||
if (!importersLoaded) {
|
||||
importersLoaded = true;
|
||||
plugin.loadHooks();
|
||||
}
|
||||
if (plugin.getImporters().isEmpty()) {
|
||||
plugin.getLocales().getLocale("error_no_importers_available")
|
||||
.ifPresent(executor::sendMessage);
|
||||
@@ -138,6 +130,20 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
}
|
||||
this.importData(executor, removeFirstArg(args));
|
||||
}
|
||||
case "reload" -> plugin.runSync(() -> {
|
||||
try {
|
||||
plugin.unloadHooks(PluginHook.Register.ON_ENABLE, PluginHook.Register.AFTER_LOAD);
|
||||
plugin.loadConfigs();
|
||||
plugin.loadHooks(PluginHook.Register.ON_ENABLE, PluginHook.Register.AFTER_LOAD);
|
||||
plugin.registerHooks(PluginHook.Register.ON_ENABLE, PluginHook.Register.AFTER_LOAD);
|
||||
plugin.getLocales().getLocale("reload_complete").ifPresent(executor::sendMessage);
|
||||
} catch (Throwable e) {
|
||||
executor.sendMessage(new MineDown(
|
||||
"[Error:](#ff3300) [Failed to reload the plugin. Check console for errors.](#ff7e5e)"
|
||||
));
|
||||
plugin.log(Level.SEVERE, "Failed to reload the plugin", e);
|
||||
}
|
||||
});
|
||||
case "delete" -> {
|
||||
if (args.length < 2) {
|
||||
plugin.getLocales().getLocale("error_invalid_syntax", getUsage())
|
||||
@@ -156,7 +162,7 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
}
|
||||
case "update" -> updateChecker.check().thenAccept(checked -> {
|
||||
if (checked.isUpToDate()) {
|
||||
plugin.getLocales().getLocale("up_to_date", plugin.getPlugin().toString())
|
||||
plugin.getLocales().getLocale("up_to_date", plugin.getPluginVersion().toString())
|
||||
.ifPresent(executor::sendMessage);
|
||||
return;
|
||||
}
|
||||
@@ -172,7 +178,7 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
private void importData(@NotNull CommandUser executor, @NotNull String[] args) {
|
||||
switch (parseStringArg(args, 0).orElse("list")) {
|
||||
case "start" -> parseStringArg(args, 1).ifPresentOrElse(
|
||||
name -> {
|
||||
(name) -> {
|
||||
final Optional<Importer> importer = plugin.getImporterByName(name);
|
||||
if (importer.isEmpty()) {
|
||||
plugin.getLocales().getLocale("error_invalid_importer")
|
||||
@@ -355,4 +361,62 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
};
|
||||
}
|
||||
|
||||
private enum StatusLine {
|
||||
PLUGIN_VERSION(plugin -> Component.text("v" + plugin.getPluginVersion().toStringWithoutMetadata())
|
||||
.appendSpace().append(plugin.getPluginVersion().getMetadata().isBlank() ? Component.empty()
|
||||
: Component.text("(build " + plugin.getPluginVersion().getMetadata() + ")"))),
|
||||
SERVER_VERSION(plugin -> Component.text(plugin.getServerType())),
|
||||
LANGUAGE(plugin -> Component.text(plugin.getSettings().getLanguage())),
|
||||
MINECRAFT_VERSION(plugin -> Component.text(plugin.getMinecraftVersion().toString())),
|
||||
JAVA_VERSION(plugin -> Component.text(System.getProperty("java.version"))),
|
||||
JAVA_VENDOR(plugin -> Component.text(System.getProperty("java.vendor"))),
|
||||
SERVER_NAME(plugin -> Component.text(plugin.getServerName())),
|
||||
DATABASE_TYPE(plugin -> Component.text(plugin.getSettings().getDatabase().getType().getDisplayName())),
|
||||
IS_DATABASE_LOCAL(plugin -> getLocalhostBoolean(plugin.getSettings().getDatabase().getCredentials().getHost())),
|
||||
USING_REDIS_SENTINEL(plugin -> getBoolean(!plugin.getSettings().getCrossServer().getRedis().getSentinel()
|
||||
.getMasterName().isBlank())),
|
||||
USING_REDIS_PASSWORD(plugin -> getBoolean(!plugin.getSettings().getCrossServer().getRedis().getPassword()
|
||||
.isBlank())),
|
||||
REDIS_USING_SSL(plugin -> getBoolean(!plugin.getSettings().getCrossServer().getRedis().isUseSsl())),
|
||||
IS_REDIS_LOCAL(plugin -> getLocalhostBoolean(plugin.getSettings().getCrossServer().getRedis().getHost())),
|
||||
LOADED_HOOKS(plugin -> Component.join(
|
||||
JoinConfiguration.commas(true),
|
||||
plugin.getHooks().stream().filter(hook -> !(hook instanceof Importer))
|
||||
.map(hook -> Component.text(hook.getName())).toList()
|
||||
)),
|
||||
LOADED_IMPORTERS(plugin -> Component.join(
|
||||
JoinConfiguration.commas(true),
|
||||
plugin.getImporters().stream().map(hook -> Component.text(hook.getName())).toList()
|
||||
));
|
||||
|
||||
private final Function<HuskHomes, Component> supplier;
|
||||
|
||||
StatusLine(@NotNull Function<HuskHomes, Component> supplier) {
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private Component get(@NotNull HuskHomes plugin) {
|
||||
return Component
|
||||
.text("•").appendSpace()
|
||||
.append(Component.text(
|
||||
WordUtils.capitalizeFully(name().replaceAll("_", " ")),
|
||||
TextColor.color(0x848484)
|
||||
))
|
||||
.append(Component.text(':')).append(Component.space().color(NamedTextColor.WHITE))
|
||||
.append(supplier.apply(plugin));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static Component getBoolean(boolean value) {
|
||||
return Component.text(value ? "Yes" : "No", value ? NamedTextColor.GREEN : NamedTextColor.RED);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static Component getLocalhostBoolean(@NotNull String value) {
|
||||
return getBoolean(value.equals("127.0.0.1") || value.equals("0.0.0.0")
|
||||
|| value.equals("localhost") || value.equals("::1"));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -22,6 +22,7 @@ package net.william278.huskhomes.hook;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Sets;
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.config.Settings;
|
||||
import net.william278.huskhomes.importer.Importer;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Unmodifiable;
|
||||
@@ -59,8 +60,10 @@ public interface HookProvider extends MapHookProvider {
|
||||
|
||||
void setHooks(@NotNull Set<Hook> hooks);
|
||||
|
||||
default void loadHooks() {
|
||||
setHooks(Sets.newHashSet(getAvailableHooks()));
|
||||
default void loadHooks(@NotNull PluginHook.Register... register) {
|
||||
final Set<PluginHook.Register> registers = Arrays.stream(register).collect(Collectors.toSet());
|
||||
final List<Hook> load = getAvailableHooks().stream().filter(h -> registers.contains(h.getRegister())).toList();
|
||||
setHooks(Sets.newHashSet(load));
|
||||
}
|
||||
|
||||
default void registerHooks(@NotNull PluginHook.Register... register) {
|
||||
@@ -81,8 +84,19 @@ public interface HookProvider extends MapHookProvider {
|
||||
.map(h -> h.name().toLowerCase(Locale.ENGLISH)).collect(Collectors.joining(" & "))));
|
||||
}
|
||||
|
||||
default void unloadHooks() {
|
||||
default void loadAfterLoadHooks() {
|
||||
getPlugin().runAsyncDelayed(() -> {
|
||||
loadHooks(PluginHook.Register.AFTER_LOAD);
|
||||
registerHooks(PluginHook.Register.AFTER_LOAD);
|
||||
}, 5 * 20); // 5 secs later
|
||||
}
|
||||
|
||||
default void unloadHooks(@NotNull PluginHook.Register... register) {
|
||||
final Set<PluginHook.Register> registers = Arrays.stream(register).collect(Collectors.toSet());
|
||||
getHooks().removeIf(hook -> {
|
||||
if (!registers.contains(hook.getRegister())) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
hook.unload();
|
||||
} catch (Throwable e) {
|
||||
@@ -95,18 +109,22 @@ public interface HookProvider extends MapHookProvider {
|
||||
@NotNull
|
||||
default List<Hook> getAvailableHooks() {
|
||||
final List<Hook> hooks = Lists.newArrayList();
|
||||
final Settings settings = getPlugin().getSettings();
|
||||
|
||||
if (getPlugin().getSettings().getMapHook().isEnabled()) {
|
||||
if (isDependencyAvailable("Dynmap")) {
|
||||
getHooks().add(new DynmapHook(getPlugin()));
|
||||
} else if (isDependencyAvailable("BlueMap")) {
|
||||
getHooks().add(new BlueMapHook(getPlugin()));
|
||||
} else if (isDependencyAvailable("Pl3xMap")) {
|
||||
getHooks().add(new Pl3xMapHook(getPlugin()));
|
||||
}
|
||||
}
|
||||
// Common hooks
|
||||
if (isDependencyAvailable("Plan")) {
|
||||
getHooks().add(new PlanHook(getPlugin()));
|
||||
hooks.add(new PlanHook(getPlugin()));
|
||||
}
|
||||
|
||||
// Map hooks
|
||||
if (settings.getMapHook().isEnabled()) {
|
||||
if (isDependencyAvailable("Dynmap")) {
|
||||
hooks.add(new DynmapHook(getPlugin()));
|
||||
} else if (isDependencyAvailable("BlueMap")) {
|
||||
hooks.add(new BlueMapHook(getPlugin()));
|
||||
} else if (isDependencyAvailable("Pl3xMap")) {
|
||||
hooks.add(new Pl3xMapHook(getPlugin()));
|
||||
}
|
||||
}
|
||||
|
||||
return hooks;
|
||||
|
||||
@@ -38,7 +38,8 @@ public @interface PluginHook {
|
||||
|
||||
enum Register {
|
||||
ON_LOAD,
|
||||
ON_ENABLE
|
||||
ON_ENABLE,
|
||||
AFTER_LOAD
|
||||
}
|
||||
|
||||
}
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warps'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| You are running the latest version of HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| A new version of HuskHomes is available: v%1% (running: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Available Data Importers:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Click to import data through this importer. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&This importer supports importing:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all of %1%''s data?](#ff7e5e)\n[All associated homes will also be deleted. This action is irreversible.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warps'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| Du verwendest die neueste Version von HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| Eine neue Version von HuskHomes ist verfügbar: v%1% (Deine Version: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Verfügbare Daten-Importer:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Klicke, um Daten über diesen Importer zu importieren suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&Dieser Importer unterstützt das Importieren von:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Warnung:](#ff3300) [Bist du dir sicher, dass du alle Daten von %1% löschen willst?](#ff7e5e)\n[Alle zugehörigen Homes werden ebenfalls gelöscht. Diese Aktion ist unumkehrbar.](gray)\n[→](gray) [[Bestätigen]](#ff3300 show_text=&#ff3300&Klicke, um die Löschung zu bestätigen. Dies kann nicht rückgängig gemacht werden. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warps'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| You are running the latest version of HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| A new version of HuskHomes is available: v%1% (running: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Available Data Importers:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Click to import data through this importer. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&This importer supports importing:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all of %1%''s data?](#ff7e5e)\n[All associated homes will also be deleted. This action is irreversible.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
@@ -116,7 +118,6 @@ locales:
|
||||
bulk_delete_warps_success: '[Successfully deleted](#00fb9a) [%1%](#00fb9a bold) [warps.](#00fb9a)'
|
||||
bulk_delete_homes_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all homes in the world \"%1%\"?](#ff7e5e)\n[This action is irreversible.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/huskhomes:huskhomes delete homes %1% %2% confirm)'
|
||||
bulk_delete_homes_success: '[Successfully deleted](#00fb9a) [%1%](#00fb9a bold) [homes.](#00fb9a)'
|
||||
error_no_importers_available: '[Error:](#ff3300) [No importers are currently available. Please check the](#ff7e5e) [plugin docs](#ff7e5e italic show_text=&#ff7e5e&Click to open link open_url=https://william278.net/docs/huskhomes/importing-data) [for more details.](#ff7e5e)'
|
||||
error_invalid_importer: '[Error:](#ff3300) [Invalid importer. Please check the](#ff7e5e) [plugin docs](#ff7e5e italic show_text=&#ff7e5e&Click to open link open_url=https://william278.net/docs/huskhomes/importing-data) [for more details.](#ff7e5e)'
|
||||
error_home_name_taken: '[Error:](#ff3300) [You already have a home set with that name.](#ff7e5e)'
|
||||
error_home_name_length: '[Error:](#ff3300) [Home names can only contain up to 16 characters!](#ff7e5e)'
|
||||
@@ -167,6 +168,7 @@ locales:
|
||||
error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)'
|
||||
error_illegal_target_coordinates: '[Error:](#ff3300) [Cancelled teleport as it exceeds the possible game world limits.](#ff7e5e)'
|
||||
error_no_players_online: '[Error:](#ff3300) [There are no players online who could teleport to you.](#ff7e5e)'
|
||||
error_no_importers_available: '[Error:](#ff3300) [No importers are currently available. Please check the](#ff7e5e) [plugin docs](#ff7e5e italic show_text=&#ff7e5e&Click to open link open_url=https://william278.net/docs/huskhomes/importing-data) [for more details.](#ff7e5e)'
|
||||
home_command_description: 'Teleport to one of your homes'
|
||||
sethome_command_description: 'Set a new home with given name'
|
||||
delhome_command_description: 'Delete a home you previously set'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warps'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| You are running the latest version of HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| A new version of HuskHomes is available: v%1% (running: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Available Data Importers:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Click to import data through this importer. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&This importer supports importing:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all of %1%''s data?](#ff7e5e)\n[All associated homes will also be deleted. This action is irreversible.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warps'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [|Vous utilisez la dernière versionde HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [|une nouvelle version de HuskHomes est disponible : v%1% (running: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Importation possibles :](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Cliquez pour importer les données de ce plugin. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&Ce plugin supporte l''importation de :\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Attention :](#ff3300) [Êtes vous sur de vouloir supprimer toutes les données de %1% ?](#ff7e5e)\n[Tout ses homes vont aussi êtres supprimé. Cette action est irréversible.](gray)\n[→](gray) [[Confirmer]](#ff3300 show_text=&#ff3300&Cliquez pour confirmer. Cette action ne peux pas être défaite. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warp'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| Il plugin è all''ultima versione disponibile (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| Disponibile una nuova versione: v%1% (running: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Configurazioni e file di messaggio ricaricati.](#00fb9a)\n[⚠ Assicurati che i file di configurazione siano aggiornati su tutti i server!](#00fb9a)\n[È necessario un riavvio per applicare le modifiche alla configurazione.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| Rapporto sullo stato del sistema:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Available Data Importers:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Click to import data through this importer. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&This importer supports importing:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all of %1%''s data?](#ff7e5e)\n[All associated homes will also be deleted. This action is irreversible.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'ワープ一覧'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| HuskHomesの最新バージョンを実行しています(v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| HuskHomesの最新バージョンが更新されています: v%1% (running: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| 利用可能なデータインポーター:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&クリックすると、このインポーターでデータを取り込むことができます。 suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&このインポーターは、インポートに対応しています。:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all of %1%''s data?](#ff7e5e)\n[All associated homes will also be deleted. This action is irreversible.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: '워프'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| 가장 최신 버전의 HuskHomes를 실행하고 있습니다! (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| 새로운 버전의 HuskHomes가 존재합니다: v%1% (현재 버전: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| 사용 가능한 데이터 임포터:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&클릭하여 이 임포터를 통해 데이터를 불러올 수 있습니다. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&이 임포터는 다음 불러오기를 지원합니다:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[경고:](#ff3300) [정말로 %1%님의 모든 데이터를 삭제하시겠습니까?](#ff7e5e)\n[All associated homes will also be deleted. This action is irreversible.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warpy'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| Korzystasz z najnowszej wersji HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| Dostępna jest nowa wersja HuskHomes: v%1% (obecna: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Dostępni Importerzy Danych:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Kliknij, aby zaimportować dane za pomocą tego importera. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&Ten importer obsługuje importowanie:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Ostrzeżenie:](#ff3300) [Czy na pewno chcesz usunąć wszystkie dane gracza %1%?](#ff7e5e)\n[Wszystkie powiązane domy zostaną również usunięte. Ta operacja jest nieodwracalna.](gray)\n[→](gray) [[Potwierdź]](#ff3300 show_text=&#ff3300&Kliknij, aby potwierdzić usunięcie. Tej operacji nie można cofnąć. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warps'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| Você está usando a versão mais recente do HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| Uma nova versão do HuskHomes está disponível: v%1% (em uso: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Importadores de Dados Disponíveis:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Clique para importar dados através deste importador. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&Este importador suporta importar:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Aviso:](#ff3300) [Você tem certeza de que deseja deletar todos os dados de %1%?](#ff7e5e)\n[Todas as casas associadas também serão deletadas. Esta ação é irreversível.](gray)\n[→](gray) [[Confirmar]](#ff3300 show_text=&#ff3300&Clique para confirmar a exclusão. Isso não pode ser desfeito. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Телепортации'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| Вы используете последнюю версию HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| Доступна новая версия HuskHomes: v%1% (текущая: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Плагин успешно перезагружен.](#00fb9a)\n[⚠ Убедитесь, что файлы конфигурации обновлены на всех серверах!](#00fb9a)\n[Необходим перезапуск для применения изменений.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| Статус системы:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Доступные импортеры данных:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Нажмите, чтобы импортировать данные через этот импортер. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&Этот импортер поддерживает импорт данных:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Предупреждение:](#ff3300) [Вы уверены, что хотите удалить все данные %1%?](#ff7e5e)\n[Все связанные дома также будут удалены. Это действие нельзя отменить.](gray)\n[→](gray) [[Подтвердить]](#ff3300 show_text=&#ff3300&Нажмите, чтобы подтвердить удаление. Это действие нельзя отменить. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warplar'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| HuskHomesun en son sürümünü kullanıyorsunuz (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| HuskHomesun yeni bir sürümü mevcut: v%1% (yürütülen: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Kullanılabilir Veri Aktarıcıları:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Bu içe aktarıcı aracılığıyla verileri içe aktarmak için tıklayın. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&Bu içe aktarıcı içe aktarmayı destekler:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Uyarı:](#ff3300) [%1% adlı oyuncunun tüm verilerini silmek istediğinizden emin misiniz?](#ff7e5e)\n[Tüm ilişkili evler de silinecektir. Bu işlem geri alınamaz.](gray)\n[→](gray) [[Onayla]](#ff3300 show_text=&#ff3300&Tıklamak için silmeyi onaylayın. Bu geri alınamaz. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warps'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| You are running the latest version of HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| A new version of HuskHomes is available: v%1% (running: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Available Data Importers:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Click to import data through this importer. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&This importer supports importing:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all of %1%''s data?](#ff7e5e)\n[All associated homes will also be deleted. This action is irreversible.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=&#ff3300&Click to confirm deletion. This cannot be undone. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warps'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| Bạn đang sử dụng phiên bản mới nhất của HuskHomes (v%1%).](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| Một phiên bản mới của HuskHomes: v%1% (đang dùng: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Reloaded config and message files.](#00fb9a)\n[⚠ Ensure config files are up-to-date on all servers!](#00fb9a)\n[A restart is needed for config changes to take effect.](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| System status report:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Available Data Importers:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&Bấm để nhập dữ liệu thông qua trình nhập dữ liệu này. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&Trình nhập dữ liệu này hỗ trợ nhập vào:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[Cảnh báo:](#ff3300) [Bạn có chắc chắn sẽ xóa tất cả dữ liệu của người chơi %1%?](#ff7e5e)\n[Tất cả nhà của người chơi cũng sẽ bị xóa. Hành động này sẽ không thể khôi phục được.](gray)\n[→](gray) [[Chấp Nhận]](#ff3300 show_text=&#ff3300&Bấm để chấp nhận xóa. Điều này sẽ không thể hoàn tác! run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: '地标'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| 你正在使用最新版本的HuskHomes (v%1%)](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| 一个新版本的HuskHomes已经可以更新: v%1% (当前: v%2%)](#ff7e5e)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| 有新版本的 HuskHomes 可用: v%1% (当前版本: v%2%).](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| 成功重载配置与消息文件.](#00fb9a)\n[⚠ 请确保所有服务器上的配置文件最新!](#00fb9a)\n[部分设置可能需要重启服务器才能生效.](#00fb9a italic)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| 可用的数据导入器:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&点击以通过此导入器导入数据. suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&此导入器支持导入:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[警告:](#ff3300) [你确定要删除 %1% 的所有数据吗?](#ff7e5e)\n[所有关联的家也将被删除. 此操作不可撤销.](gray)\n[→](gray) [[确定]](#ff3300 show_text=&#ff3300&点击确认删除. 此操作不可撤销. run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -108,6 +108,8 @@ locales:
|
||||
map_hook_warps_marker_set_name: '地標'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [| 您執行的是最新版本的 HuskHomes (v%1%)。](#00fb9a)'
|
||||
update_available: '[HuskHomes](#ff7e5e bold) [| 發現可用的新版本:v%1%(目前版本:v%2%)。](#ff7e5e)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| 已重新載入設定和訊息檔案。](#00fb9a)\n[⚠ 請確保所有伺服器上的設定檔案都是最新的!](#00fb9a)\n[需要重新啟動才能使設定變更生效。](#00fb9a italic)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| 系統狀態報告:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| 可用的資料匯入器:](#00fb9a)\n'
|
||||
importer_list_item: '[%1%](#00fb9a show_text=�fb9a&按這裡透過此匯入器匯入資料。suggest_command=/huskhomes:huskhomes import start %1%) [⏩ %2%](white show_text=�fb9a&此匯入器支援匯入:\n&f%2% suggest_command=/huskhomes:huskhomes import start %1%)'
|
||||
delete_player_confirm: '[警告:](#ff3300)[您確定要刪除 %1% 的所有資料嗎?](#ff7e5e)\n[所有相關的家也將被刪除。此操作不可復原。](gray)\n[→](gray)[[確定]](#ff3300 show_text=&#ff3300&按這裡確定刪除。此操作不可復原!run_command=/huskhomes:huskhomes delete player %1% confirm)'
|
||||
|
||||
@@ -21,6 +21,7 @@ package net.william278.huskhomes.hook;
|
||||
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.william278.huskhomes.FabricHuskHomes;
|
||||
import net.william278.huskhomes.config.Settings;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
@@ -32,20 +33,20 @@ public interface FabricHookProvider extends HookProvider {
|
||||
@NotNull
|
||||
default List<Hook> getAvailableHooks() {
|
||||
final List<Hook> hooks = HookProvider.super.getAvailableHooks();
|
||||
final Settings settings = getPlugin().getSettings();
|
||||
|
||||
// Register the impactor economy service if it is available
|
||||
if (getPlugin().getSettings().getEconomy().isEnabled() && isDependencyAvailable("impactor")) {
|
||||
getHooks().add(new FabricImpactorEconomyHook(getPlugin()));
|
||||
if (isDependencyAvailable("impactor") && settings.getEconomy().isEnabled()) {
|
||||
hooks.add(new FabricImpactorEconomyHook(getPlugin()));
|
||||
}
|
||||
|
||||
if (isDependencyAvailable("placeholder-api")) {
|
||||
getHooks().add(new FabricPlaceholderAPIHook(getPlugin()));
|
||||
hooks.add(new FabricPlaceholderAPIHook(getPlugin()));
|
||||
}
|
||||
|
||||
return hooks;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
default boolean isDependencyAvailable(@NotNull String name) {
|
||||
return FabricLoader.getInstance().isModLoaded(name)
|
||||
|
||||
@@ -34,6 +34,6 @@ dependencies:
|
||||
required: false
|
||||
join-classpath: true
|
||||
Essentials:
|
||||
load: OMIT
|
||||
load: AFTER
|
||||
required: false
|
||||
join-classpath: true
|
||||
Reference in new issue
Block a user