mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
feat: add home slot admin adjust command, close #495
This commit is contained in:
19 files changed
+140
-24
No files matched your search
@@ -30,6 +30,7 @@ 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.position.Home;
|
||||
import net.william278.huskhomes.user.CommandUser;
|
||||
import net.william278.huskhomes.user.SavedUser;
|
||||
import net.william278.huskhomes.user.User;
|
||||
@@ -44,13 +45,14 @@ import java.util.logging.Level;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
public class HuskHomesCommand extends Command implements UserListTabCompletable {
|
||||
|
||||
private static final Map<String, Boolean> SUB_COMMANDS = Map.of(
|
||||
"about", false,
|
||||
"help", false,
|
||||
"reload", true,
|
||||
"status", true,
|
||||
"homeslots", false,
|
||||
"import", true,
|
||||
"delete", true,
|
||||
"update", true
|
||||
@@ -122,6 +124,14 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
Arrays.stream(StatusLine.values()).map(s -> s.get(plugin)).toList()
|
||||
));
|
||||
}
|
||||
case "homeslots" -> {
|
||||
if (!plugin.isUsingEconomy() || args.length <= 1) {
|
||||
plugin.getLocales().getLocale("error_invalid_syntax", getUsage())
|
||||
.ifPresent(executor::sendMessage);
|
||||
return;
|
||||
}
|
||||
this.manageHomeSlots(executor, removeFirstArg(args));
|
||||
}
|
||||
case "import" -> {
|
||||
if (plugin.getImporters().isEmpty()) {
|
||||
plugin.getLocales().getLocale("error_no_importers_available")
|
||||
@@ -174,6 +184,64 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
}
|
||||
}
|
||||
|
||||
// Manage a user's home slots
|
||||
private void manageHomeSlots(@NotNull CommandUser executor, @NotNull String[] args) {
|
||||
// Parse args
|
||||
final Optional<SavedUser> savedUser = parseStringArg(args, 0)
|
||||
.flatMap(u -> plugin.getDatabase().getUser(u));
|
||||
final String actionArg = parseStringArg(args, 1).orElse("view").toLowerCase(Locale.ENGLISH);
|
||||
final Optional<Integer> valueArg = parseIntArg(args, 2);
|
||||
|
||||
// Resolve user
|
||||
if (savedUser.isEmpty()) {
|
||||
plugin.getLocales().getLocale("error_player_not_found", args[0])
|
||||
.ifPresent(executor::sendMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
// Perform actions
|
||||
final SavedUser user = savedUser.get();
|
||||
switch (actionArg) {
|
||||
case "view" -> {
|
||||
final List<Home> homes = plugin.getDatabase().getHomes(user.getUser());
|
||||
plugin.getLocales().getLocale("user_home_slots_status", user.getUsername(),
|
||||
Integer.toString(user.getHomeSlots()), Integer.toString(homes.size()))
|
||||
.ifPresent(executor::sendMessage);
|
||||
}
|
||||
case "set", "add", "remove" -> {
|
||||
if (valueArg.isEmpty()) {
|
||||
plugin.getLocales().getLocale("error_invalid_syntax",
|
||||
"/%s homeslots <set|add|remove> <value>".formatted(getName()))
|
||||
.ifPresent(executor::sendMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
// Calculate new slots and apply
|
||||
int value = valueArg.orElseThrow();
|
||||
if (actionArg.equals("add")) {
|
||||
value = user.getHomeSlots() + value;
|
||||
} else if (actionArg.equals("remove")) {
|
||||
value = user.getHomeSlots() - value;
|
||||
}
|
||||
if (value < 0) {
|
||||
plugin.getLocales().getLocale("error_invalid_syntax",
|
||||
"/%s homeslots [view|set|add|remove]".formatted(getName()))
|
||||
.ifPresent(executor::sendMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
user.setHomeSlots(value);
|
||||
plugin.getDatabase().updateUserData(user);
|
||||
plugin.getLocales().getLocale("user_home_slots_updated",
|
||||
user.getUsername(), Integer.toString(user.getHomeSlots()))
|
||||
.ifPresent(executor::sendMessage);
|
||||
}
|
||||
default -> plugin.getLocales().getLocale("error_invalid_syntax",
|
||||
"/%s homeslots [view|set|add|remove]".formatted(getName()))
|
||||
.ifPresent(executor::sendMessage);
|
||||
}
|
||||
}
|
||||
|
||||
// Import data from another plugin
|
||||
private void importData(@NotNull CommandUser executor, @NotNull String[] args) {
|
||||
switch (parseStringArg(args, 0).orElse("list")) {
|
||||
@@ -347,16 +415,21 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
case 2 -> switch (args[0].toLowerCase()) {
|
||||
case "help" -> IntStream.rangeClosed(1, getCommandList(user).getTotalPages())
|
||||
.mapToObj(Integer::toString).toList();
|
||||
case "homeslots" -> UserListTabCompletable.super.getUsernameList();
|
||||
case "import" -> List.of("start", "list");
|
||||
case "delete" -> List.of("player", "homes", "warps");
|
||||
default -> null;
|
||||
};
|
||||
case 3 -> {
|
||||
if (!args[0].equalsIgnoreCase("import") && !args[1].equalsIgnoreCase("start")) {
|
||||
yield null;
|
||||
case 3 -> switch (args[0].toLowerCase()) {
|
||||
case "homeslots" -> List.of("view", "add", "remove", "set");
|
||||
case "import" -> {
|
||||
if (!args[1].equalsIgnoreCase("start")) {
|
||||
yield null;
|
||||
}
|
||||
yield plugin.getImporters().stream().map(Importer::getName).toList();
|
||||
}
|
||||
yield plugin.getImporters().stream().map(Importer::getName).toList();
|
||||
}
|
||||
default -> null;
|
||||
};
|
||||
default -> null;
|
||||
};
|
||||
}
|
||||
@@ -416,7 +489,7 @@ public class HuskHomesCommand extends Command implements TabCompletable {
|
||||
@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"));
|
||||
|| value.equals("localhost") || value.equals("::1"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,12 @@ public interface UserListTabCompletable extends TabCompletable {
|
||||
@Override
|
||||
@Nullable
|
||||
default List<String> suggest(@NotNull CommandUser user, @NotNull String[] args) {
|
||||
return args.length < 2 ? getPlugin().getUserList().stream().map(User::getName).toList() : null;
|
||||
return args.length < 2 ? getUsernameList() : null;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
default List<String> getUsernameList() {
|
||||
return getPlugin().getUserList().stream().map(User::getName).toList();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -109,6 +109,8 @@ locales:
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ locales:
|
||||
map_hook_warps_marker_set_name: 'Warps'
|
||||
up_to_date: '[HuskHomes](#00fb9a bold) [|Vous utilisez la dernière version de 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) [| Rechargement de la configuration et des fichiers de messages.](#00fb9a)\n[⚠ Assurez-vous que les fichiers de configuration sont à jour sur tous les serveurs !](#00fb9a)\n[Un redémarrage est nécessaire pour que les modifications prennent effet.](#00fb9a italic)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Rechargement de la configuration et des fichiers de messages.](#00fb9a)\n[⚠ Assurez-vous que les fichiers de configuration sont à jour sur tous les serveurs !](#00fb9a)\n[Un redémarrage est nécessaire pour que les modifications prennent effet.](#00fb9a italic)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| État du système :](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Importation possible :](#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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Плагин успешно перезагружен.](#00fb9a)\n[⚠ Убедитесь, что файлы конфигурации обновлены на всех серверах!](#00fb9a)\n[Необходим перезапуск для применения изменений.](#00fb9a italic)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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) [| Yapılandırma ve mesaj dosyaları tekrar yüklendi.](#00fb9a)\n[⚠ Yapılandırma dosyalarının tüm sunucularda güncel olduğundan emin olun!](#00fb9a)\n[Yapılandırma değişikliklerinin etkili olması için yeniden başlatma gerekir.](#00fb9a italic)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Yapılandırma ve mesaj dosyaları tekrar yüklendi.](#00fb9a)\n[⚠ Yapılandırma dosyalarının tüm sunucularda güncel olduğundan emin olun!](#00fb9a)\n[Yapılandırma değişikliklerinin etkili olması için yeniden başlatma gerekir.](#00fb9a italic)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| Sistem durum raporu:](#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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
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)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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) [| Đã tải lại các tệp cấu hình và tin nhắn.](#00fb9a)\n[⚠ Hãy đảm bảo các tệp cấu hình được cập nhật trên tất cả các máy chủ!](#00fb9a)\n[Cần khởi động lại để các thay đổi về cấu hình có hiệu lực.](#00fb9a italic)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| Đã tải lại các tệp cấu hình và tin nhắn.](#00fb9a)\n[⚠ Hãy đảm bảo các tệp cấu hình được cập nhật trên tất cả các máy chủ!](#00fb9a)\n[Cần khởi động lại để các thay đổi về cấu hình có hiệu lực.](#00fb9a italic)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
system_status_header: '[HuskHomes](#00fb9a bold) [| Báo cáo tình trạng Hệ Thống:](#00fb9a)'
|
||||
importer_list_title: '[HuskHomes](#00fb9a bold) [| Trình nhập dữ liệu có sẵn:](#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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| 成功重载配置与消息文件.](#00fb9a)\n[⚠ 请确保所有服务器上的配置文件最新!](#00fb9a)\n[部分设置可能需要重启服务器才能生效.](#00fb9a italic)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
@@ -108,7 +108,9 @@ 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)'
|
||||
reload_complete: '[HuskHomes](#00fb9a bold) [| 已重新載入設定和訊息檔案。](#00fb9a)\n[⚠ 請確保所有伺服器上的設定檔案都是最新的!](#00fb9a)\n[需要重新啟動才能使設定變更生效。](#00fb9a italic)'
|
||||
user_home_slots_status: '[HuskHomes](#00fb9a bold) [| %1% has %2% home slot(s) and has set %3% home(s).](#00fb9a)'
|
||||
user_home_slots_updated: '[HuskHomes](#00fb9a bold) [| %1%''s home slot count has been set to %2%.](#00fb9a)'
|
||||
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%)'
|
||||
|
||||
+7
-1
@@ -373,7 +373,7 @@ This is a table of HuskHomes commands, how to use them, and their required permi
|
||||
<!-- /huskhomes command -->
|
||||
<tr><th colspan="5">Plugin management command</th></tr>
|
||||
<tr>
|
||||
<td rowspan="10"><code>/huskhomes</code></td>
|
||||
<td rowspan="11"><code>/huskhomes</code></td>
|
||||
<td><code>/huskhomes</code></td>
|
||||
<td>Use plugin management commands</td>
|
||||
<td><code>huskhomes.command.huskhomes</code></td>
|
||||
@@ -403,6 +403,12 @@ This is a table of HuskHomes commands, how to use them, and their required permi
|
||||
<td><code>huskhomes.command.huskhomes.reload</code></td>
|
||||
<td align="center">❌</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>/huskhomes homeslots <username> [view|set|add|remove]</code></td>
|
||||
<td>View & manage a player's home slots (requires economy hook)</td>
|
||||
<td><code>huskhomes.command.huskhomes.homeslots</code></td>
|
||||
<td align="center">❌</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>/huskhomes import</code></td>
|
||||
<td>Import data from another plugin</td>
|
||||
|
||||
Reference in new issue
Block a user