From d7e50b3a376045f4f032dad5fa4f5fa124a930b6 Mon Sep 17 00:00:00 2001 From: WiIIiam278 Date: Sat, 29 May 2021 12:47:14 +0100 Subject: [PATCH] Text overhaul --- .../huskhomes2/commands/HuskHomesCommand.java | 49 ++--- .../huskhomes2/data/DataManager.java | 6 +- .../huskhomes2/listeners/PlayerListener.java | 27 +-- .../listeners/PluginMessageListener.java | 6 +- .../teleport/TeleportRequestHandler.java | 34 +--- src/main/resources/Languages/en-gb.yml | 174 +++++++++--------- 6 files changed, 117 insertions(+), 179 deletions(-) diff --git a/src/main/java/me/william278/huskhomes2/commands/HuskHomesCommand.java b/src/main/java/me/william278/huskhomes2/commands/HuskHomesCommand.java index cbd5f944..c510b401 100644 --- a/src/main/java/me/william278/huskhomes2/commands/HuskHomesCommand.java +++ b/src/main/java/me/william278/huskhomes2/commands/HuskHomesCommand.java @@ -1,12 +1,10 @@ package me.william278.huskhomes2.commands; +import de.themoep.minedown.MineDown; import me.william278.huskhomes2.HuskHomes; import me.william278.huskhomes2.MessageManager; import me.william278.huskhomes2.migrators.EssentialsMigrator; import net.md_5.bungee.api.ChatColor; -import net.md_5.bungee.api.chat.ClickEvent; -import net.md_5.bungee.api.chat.ComponentBuilder; -import net.md_5.bungee.api.chat.TextComponent; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.command.TabCompleter; @@ -17,21 +15,18 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import static net.md_5.bungee.api.chat.ClickEvent.Action.OPEN_URL; - public class HuskHomesCommand extends CommandBase implements TabCompleter { private static final HuskHomes plugin = HuskHomes.getInstance(); - - private static void showAboutMenu(CommandSender sender) { - sender.sendMessage(ChatColor.GREEN + "" + ChatColor.BOLD + "HuskHomes" + ChatColor.RESET + " " + ChatColor.GREEN + "| Version " + plugin.getDescription().getVersion()); - sender.sendMessage(ChatColor.GRAY + plugin.getDescription().getDescription()); - sender.sendMessage("• Author: " + ChatColor.GRAY + "William278"); - sender.sendMessage("• Contributors: " + ChatColor.GRAY + "imDaniX"); - sender.sendMessage("• Translators: " + ChatColor.GRAY + "RohFrenzy (de-de), 咖波 (zh-tw), imDaniX (ru), ReferTV (pl), Villag3r_ (it-it)"); - sender.sendMessage("• Help Wiki: " + ChatColor.GRAY + "https://github.com/WiIIiam278/HuskHomes2/wiki/"); - sender.sendMessage("• Issue Tracker: " + ChatColor.GRAY + "https://github.com/WiIIiam278/HuskHomes2/issues"); - } + private static final StringBuilder PLUGIN_INFORMATION = new StringBuilder() + .append("[HuskHomes](#00fb9a bold) [| Version ").append(plugin.getDescription().getVersion()).append("](#00fb9a)\n") + .append("[").append(plugin.getDescription().getDescription()).append("](gray)\n") + .append("[• Author:](white) [William278](gray show_text=&7Click to pay a visit open_url=https://youtube.com/William27528)\n") + .append("[• Contributors:](white) [imDaniX](gray show_text=&7Code, refactoring)\n") + .append("[• Translators:](white) [RohFrenzy](gray show_text=&7German Translation, de-de), [咖波](gray show_text=&7Chinese Translation, zh-tw), [imDaniX](gray show_text=&7Russian Translation, ru), [ReferTV](gray show_text=&7Polish Translation, pl), [Villag3r_](gray show_text=&7Italian Translation, it-it) \n") + .append("[• Help Wiki:](white) [[Link]](#00fb9a show_text=&7Click to open link open_url=https://github.com/WiIIiam278/HuskHomes2/wiki/)\n") + .append("[• Report Issues:](white) [[Link]](#00fb9a show_text=&7Click to open link open_url=https://github.com/WiIIiam278/HuskHomes2/issues)\n") + .append("[• Support Discord:](white) [[Link]](#00fb9a show_text=&7Click to join open_url=https://discord.gg/tVYhJfyDWG)"); @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { @@ -43,7 +38,7 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter { return true; } } - showAboutMenu(sender); + sender.spigot().sendMessage(new MineDown(PLUGIN_INFORMATION.toString()).toComponent()); return true; } @@ -53,19 +48,13 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter { Player p = (Player) sender; if (p.hasPermission("huskhomes.version_checker")) { if (!HuskHomes.getVersionCheckString().contains("HuskHomes is up to date!")) { - p.sendMessage(org.bukkit.ChatColor.DARK_RED + "Update: " + org.bukkit.ChatColor.RED + HuskHomes.getVersionCheckString()); + String updateMessage = "[Update:](dark_red) [" + + HuskHomes.getVersionCheckString() + "](red)\n" + "[Get the latest version:](gray) " + + "[[Download]](#00fb9a show_text=&7Click to visit webpage open_url=https://www.spigotmc.org/resources/huskhomes.83767/updates)"; + sender.spigot().sendMessage(new MineDown(updateMessage).toComponent()); - // Send a link to Spigot downloads page - ComponentBuilder componentBuilder = new ComponentBuilder(); - TextComponent projectURL = new TextComponent("[Download]"); - ClickEvent clickEvent = new ClickEvent(OPEN_URL, "https://www.spigotmc.org/resources/huskhomes.83767/updates"); - projectURL.setClickEvent(clickEvent); - projectURL.setColor(net.md_5.bungee.api.ChatColor.AQUA); - componentBuilder = componentBuilder.append(TextComponent.fromLegacyText("§7Get the latest version: ")); - componentBuilder = componentBuilder.append(projectURL); - p.spigot().sendMessage(componentBuilder.create()); } else { - p.sendMessage(ChatColor.GREEN + "" + ChatColor.BOLD + "HuskHomes" + ChatColor.RESET + "" + ChatColor.GREEN + " | HuskHomes is up-to-date! (Version " + plugin.getDescription().getVersion() + ")"); + sender.spigot().sendMessage(new MineDown("[HuskHomes](#00fb9a bold) �fb9a&| HuskHomes is up-to-date! (Version " + plugin.getDescription().getVersion() + ")").toComponent()); } } else { MessageManager.sendMessage(p, "error_no_permission"); @@ -80,7 +69,7 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter { if (p.hasPermission("huskhomes.reload")) { HuskHomes.getSettings().reload(); MessageManager.loadMessages(HuskHomes.getSettings().getLanguage()); - p.sendMessage(ChatColor.GREEN + "" + ChatColor.BOLD + "HuskHomes" + ChatColor.RESET + "" + ChatColor.GREEN + " | Reloaded config and message files."); + sender.spigot().sendMessage(new MineDown("[HuskHomes](#00fb9a bold) �fb9a&| Reloaded config & message files.").toComponent()); } else { MessageManager.sendMessage(p, "error_no_permission"); } @@ -99,7 +88,7 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter { } if (args.length == 2) { if (args[1].equalsIgnoreCase("essentialsX")) { - sender.sendMessage(ChatColor.GREEN + "Attempting to migrate from EssentialsX..."); + sender.spigot().sendMessage(new MineDown("[HuskHomes](#00fb9a bold) �fb9a&| Starting data migration from EssentialsX...").toComponent()); EssentialsMigrator.migrate(); } else { sender.sendMessage(ChatColor.RED + "Invalid argument! Usage: /huskhomes migrate essentialsX"); @@ -116,7 +105,7 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter { return true; } } - showAboutMenu(sender); + sender.spigot().sendMessage(new MineDown(PLUGIN_INFORMATION.toString()).toComponent()); return true; } } diff --git a/src/main/java/me/william278/huskhomes2/data/DataManager.java b/src/main/java/me/william278/huskhomes2/data/DataManager.java index cc203ac1..2ddb15c7 100644 --- a/src/main/java/me/william278/huskhomes2/data/DataManager.java +++ b/src/main/java/me/william278/huskhomes2/data/DataManager.java @@ -113,13 +113,11 @@ public class DataManager { } // Return if the player is teleporting - public static Boolean getPlayerTeleporting(Player p) throws SQLException { - Connection conn; + public static Boolean getPlayerTeleporting(Player p, Connection connection) throws SQLException { PreparedStatement ps; ResultSet rs; - conn = getConnection(); - ps = conn.prepareStatement("SELECT * FROM " + HuskHomes.getSettings().getPlayerDataTable() + " WHERE `user_uuid`=?;"); + ps = connection.prepareStatement("SELECT * FROM " + HuskHomes.getSettings().getPlayerDataTable() + " WHERE `user_uuid`=?;"); ps.setString(1, p.getUniqueId().toString()); rs = ps.executeQuery(); if (rs != null) { diff --git a/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java b/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java index 7d8c0fb8..3a143bc0 100644 --- a/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java +++ b/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java @@ -6,12 +6,6 @@ import me.william278.huskhomes2.commands.HomeCommand; import me.william278.huskhomes2.data.DataManager; import me.william278.huskhomes2.teleport.TeleportManager; import me.william278.huskhomes2.teleport.points.TeleportationPoint; -import net.md_5.bungee.api.ChatColor; -import net.md_5.bungee.api.chat.ClickEvent; -import net.md_5.bungee.api.chat.ComponentBuilder; -import net.md_5.bungee.api.chat.HoverEvent; -import net.md_5.bungee.api.chat.TextComponent; -import net.md_5.bungee.api.chat.hover.content.Text; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; @@ -27,18 +21,6 @@ public class PlayerListener implements Listener { private static final HuskHomes plugin = HuskHomes.getInstance(); - private static ComponentBuilder backButton() { - ComponentBuilder backButton = new ComponentBuilder(); - TextComponent button = new TextComponent("[Go Back]"); - button.setColor(ChatColor.GREEN); - - button.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, ("/back"))); - button.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(new ComponentBuilder("Return to your death location with /back").color(ChatColor.GRAY).italic(true).create()))); - backButton.append("→ ").color(ChatColor.GRAY); - backButton.append(button); - return backButton; - } - @EventHandler public void onPlayerDie(PlayerDeathEvent e) { Player p = e.getEntity(); @@ -48,7 +30,6 @@ public class PlayerListener implements Listener { try { DataManager.setPlayerLastPosition(p, new TeleportationPoint(p.getLocation(), HuskHomes.getSettings().getServerID()), connection); MessageManager.sendMessage(p, "return_by_death"); - p.spigot().sendMessage(backButton().create()); } catch (SQLException sqlException) { plugin.getLogger().log(Level.SEVERE, "An SQL error occurred updating the last position of a player when they died", sqlException); } @@ -80,10 +61,14 @@ public class PlayerListener implements Listener { // If bungee mode, check if the player joined the server from a teleport and act accordingly if (HuskHomes.getSettings().doBungee()) { - if (DataManager.getPlayerTeleporting(p)) { - TeleportManager.teleportPlayer(p); + final Boolean isTeleporting = DataManager.getPlayerTeleporting(p, connection); + if (isTeleporting != null) { + if (isTeleporting) { + TeleportManager.teleportPlayer(p); + } } + /*// Update player lists globally if (HuskHomes.getSettings().doCrossServerTabCompletion()) { CrossServerListHandler.updatePlayerList(p); diff --git a/src/main/java/me/william278/huskhomes2/listeners/PluginMessageListener.java b/src/main/java/me/william278/huskhomes2/listeners/PluginMessageListener.java index 0b05d900..7d2f99c3 100644 --- a/src/main/java/me/william278/huskhomes2/listeners/PluginMessageListener.java +++ b/src/main/java/me/william278/huskhomes2/listeners/PluginMessageListener.java @@ -34,9 +34,9 @@ public class PluginMessageListener implements org.bukkit.plugin.messaging.Plugin try { DataManager.setPlayerDestinationLocation(pluginMessage.getMessageData(), new TeleportationPoint(recipient.getLocation(), HuskHomes.getSettings().getServerID()), connection); + new PluginMessage(pluginMessage.getMessageData(), PluginMessageType.CONFIRM_DESTINATION_SET, "confirmed").send(recipient); } catch (SQLException e) { plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred responding to a plugin message teleport destination update"); - new PluginMessage(pluginMessage.getMessageData(), PluginMessageType.CONFIRM_DESTINATION_SET, "confirmed").send(recipient); } }); return; @@ -49,14 +49,14 @@ public class PluginMessageListener implements org.bukkit.plugin.messaging.Plugin if (!VanishChecker.isVanished(recipient)) { TeleportRequestHandler.teleportRequests.put(recipient, new TeleportRequest(pluginMessage.getMessageData(), TeleportRequest.RequestType.TPA)); MessageManager.sendMessage(recipient, "tpa_request_ask", pluginMessage.getMessageData()); - TeleportRequestHandler.sendTpAcceptDenyButtons(recipient); + MessageManager.sendMessage(recipient, "teleport_request_options"); } return; case TPAHERE_REQUEST: if (!VanishChecker.isVanished(recipient)) { TeleportRequestHandler.teleportRequests.put(recipient, new TeleportRequest(pluginMessage.getMessageData(), TeleportRequest.RequestType.TPAHERE)); MessageManager.sendMessage(recipient, "tpahere_request_ask", pluginMessage.getMessageData()); - TeleportRequestHandler.sendTpAcceptDenyButtons(recipient); + MessageManager.sendMessage(recipient, "teleport_request_options"); } return; case TPA_REQUEST_REPLY: diff --git a/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java b/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java index 724c61ef..4ca9fa0b 100644 --- a/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java +++ b/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java @@ -1,14 +1,10 @@ package me.william278.huskhomes2.teleport; -import de.themoep.minedown.MineDown; import me.william278.huskhomes2.HuskHomes; import me.william278.huskhomes2.MessageManager; import me.william278.huskhomes2.data.pluginmessage.PluginMessage; import me.william278.huskhomes2.data.pluginmessage.PluginMessageType; import me.william278.huskhomes2.integrations.VanishChecker; -import net.md_5.bungee.api.ChatColor; -import net.md_5.bungee.api.chat.*; -import net.md_5.bungee.api.chat.hover.content.Text; import org.bukkit.Bukkit; import org.bukkit.entity.Player; @@ -41,32 +37,6 @@ public class TeleportRequestHandler { } } - private static TextComponent runCommandButton(String buttonText, ChatColor color, String command, String hoverMessage) { - TextComponent button = new TextComponent(buttonText); - button.setColor(color); - - button.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, (command))); - button.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(new ComponentBuilder(hoverMessage).color(ChatColor.GRAY).italic(false).create()))); - return button; - } - - public static void sendTpAcceptDenyButtons(Player p) { - // Send the "Accept" or "Decline" response buttons to the player who has received a request - // Options text - BaseComponent[] options = new MineDown(MessageManager.getRawMessage("option_selection_prompt")).toComponent(); - BaseComponent[] divider = new MineDown(MessageManager.getRawMessage("list_item_divider")).urlDetection(false).toComponent(); - - // Build the components together - ComponentBuilder teleportResponses = new ComponentBuilder(); - teleportResponses.append(options, ComponentBuilder.FormatRetention.NONE); - teleportResponses.append(runCommandButton(MessageManager.getRawMessage("tpa_accept_button"), ChatColor.GREEN, "/tpaccept", MessageManager.getRawMessage("tpa_accept_button_tooltip")), ComponentBuilder.FormatRetention.NONE); - teleportResponses.append(divider, ComponentBuilder.FormatRetention.NONE); - teleportResponses.append(runCommandButton(MessageManager.getRawMessage("tpa_decline_button"), ChatColor.RED, "/tpdeny", MessageManager.getRawMessage("tpa_decline_button_tooltip")), ComponentBuilder.FormatRetention.NONE); - - // Create and send the message - p.spigot().sendMessage(teleportResponses.create()); - } - public static void sendTeleportToRequest(Player requester, String targetPlayerName) { Player targetPlayer = Bukkit.getPlayer(targetPlayerName); if (targetPlayer != null) { @@ -75,7 +45,7 @@ public class TeleportRequestHandler { teleportRequests.put(targetPlayer, new TeleportRequest(requester.getName(), TeleportRequest.RequestType.TPA)); MessageManager.sendMessage(requester, "tpa_request_sent", targetPlayerName); MessageManager.sendMessage(targetPlayer, "tpa_request_ask", requester.getName()); - TeleportRequestHandler.sendTpAcceptDenyButtons(targetPlayer); + MessageManager.sendMessage(targetPlayer, "teleport_request_options"); } else { MessageManager.sendMessage(requester, "error_player_not_found", targetPlayerName); } @@ -99,7 +69,7 @@ public class TeleportRequestHandler { teleportRequests.put(targetPlayer, new TeleportRequest(requester.getName(), TeleportRequest.RequestType.TPAHERE)); MessageManager.sendMessage(requester, "tpahere_request_sent", targetPlayerName); MessageManager.sendMessage(targetPlayer, "tpahere_request_ask", requester.getName()); - TeleportRequestHandler.sendTpAcceptDenyButtons(targetPlayer); + MessageManager.sendMessage(targetPlayer, "teleport_request_options"); } else { MessageManager.sendMessage(requester, "error_tp_self"); } diff --git a/src/main/resources/Languages/en-gb.yml b/src/main/resources/Languages/en-gb.yml index 75645fd2..b35576d3 100644 --- a/src/main/resources/Languages/en-gb.yml +++ b/src/main/resources/Languages/en-gb.yml @@ -1,94 +1,90 @@ -error_no_permission: '&4Error: &cYou do not have permission to execute that command.' -error_no_last_position: '&4Error: &cYou have no last position to return to!' -teleporting_last_position: '&aReturning to your last position in &l%1%&r&a seconds' -teleporting_countdown_start: '&aYou will be teleported in &l%1%&r&a seconds' -teleporting_cancelled_movement: '&cTeleportation cancelled; you moved!' -teleporting_cancelled_damage: '&cTeleportation cancelled; you took damage!' -teleporting_complete: '&aYou have been teleported!' -teleporting_action_bar_countdown: '&cTeleporting in &l%1%' -teleporting_action_bar_cancelled: '&cTeleporting cancelled!' -teleporting_please_stand_still: '&7Please stand still for that time.' -home_deleted: '&aSuccessfully deleted &l%1%&r&a home.' -warp_deleted: '&aSuccessfully deleted &l%1%&r&a warp.' -error_home_invalid: '&4Error: &cYou do not have a home named "%1%"' -error_warp_invalid: '&4Error: &cThere is no warp set named "%1%"' -error_invalid_syntax: '&4Error: &cIncorrect syntax. Usage:\n &o%1%' -edit_home_title: '&aEdit home details for &l%1%&r&a:' +error_no_permission: '[Error:](#ff3300) [You do not have permission to execute that command.](#ff7e5e)' +error_no_last_position: '[Error:](#ff3300) [You have no last position to return to!](#ff7e5e)' +teleporting_last_position: '[Returning to your last position in](#00fb9a) [%1%](#00fb9a bold) [seconds](#00fb9a)' +teleporting_countdown_start: '[You will be teleported in](#00fb9a) [%1%](#00fb9a bold) [seconds](#00fb9a)' +teleporting_cancelled_movement: '[Teleportation cancelled; you moved!](#ff7e5e)' +teleporting_cancelled_damage: '[Teleportation cancelled; you took damage!](#ff7e5e)' +teleporting_complete: '[Teleportation complete!](#00fb9a)' +teleporting_action_bar_countdown: '[Teleporting in](#00fb9a) [%1%](#00fb9a bold)[...](#00fb9a)' +teleporting_action_bar_cancelled: '[Teleportation cancelled!](#ff7e5e)' +teleporting_please_stand_still: '[Teleportation will be cancelled if you move or take damage.](gray)' +home_deleted: '[Successfully deleted the home,](#00fb9a) [%1%](#00fb9a bold)' +warp_deleted: '[Successfully deleted the warp,](#00fb9a) [%1%](#00fb9a bold)' +error_home_invalid: '[Error:](#ff3300) [You do not have a home named "%1%"](#ff7e5e)' +error_warp_invalid: '[Error:](#ff3300) [There is no warp set named "%1%"](#ff7e5e)' +error_invalid_syntax: '[Error:](#ff3300) [Incorrect syntax. Usage: %1%](#ff7e5e)' +edit_home_title: '[Edit home details for](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)' edit_description: '• Description: &7%1%' edit_location: '• Location: &7%1%, %2%, %3%' edit_world: '• World: &7%1%' edit_server: '• Server: &7%1%' -edit_home_privacy_private: '• Access: &cPrivate &7(Only you can use it)' -edit_home_privacy_public: '• Access: &2Public &7(Anyone can use it)' -edit_home_privacy_public_success: '&aSuccessfully made your home &l%1%&r&a open to the public.' -edit_home_privacy_public_success_economy: '&aSuccessfully made your home &l%1%&r&a open to the public for %2%' -edit_home_privacy_private_success: '&aSuccessfully made your home &l%1%&r&a private' -error_edit_home_privacy_already_public: '&4Error: &cYour home is already set to public.' -error_edit_home_privacy_already_private: '&4Error: &cYour home is already set to private.' -error_edit_home_privacy_no_permission: '&4Error: &cYou do not have permission to make homes public.' -error_edit_home_invalid_description: '&4Error: &cHome descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_) and must be less than 255 characters in length' -edit_home_update_location: '&aRe-located &l%1% &r&ato your current position.' -edit_home_update_description: '&aChanged the description for &l%1%&r&a to "%2%".' -edit_home_update_name: '&aSuccessfully changed your home''s name: %1% → &l%2%' -error_no_homes_set: '&4Error: &cYou haven''t set any homes!' -error_no_public_homes_set: '&4Error: &cThere aren''t any public homes set!' -error_no_warps_set: '&4Error: &cThere aren''t any warps set!' -private_home_list_page_top: '&a%1%''s Homes: (&l%2%-%3%&r&a of &l%4%&r&a)' -public_home_list_page_top: '&aPublic Homes: (&l%1%-%2%&r&a of &l%3%&r&a)' +edit_home_privacy_private: '• Access: &#ff7e5e&Private &7(Only you can use it)' +edit_home_privacy_public: '• Access: &aPublic &7(Anyone can use it)' +edit_home_privacy_public_success: '[Successfully made your home, ](#00fb9a) [%1%](#00fb9a bold)[, open to the public.](#00fb9a)' +edit_home_privacy_public_success_economy: '[Successfully made your home, ](#00fb9a) [%1%](#00fb9a bold)[, open to the public for %2%.](#00fb9a)' +edit_home_privacy_private_success: '[Successfully made your home, ](#00fb9a) [%1%](#00fb9a bold)[, private.](#00fb9a)' +error_edit_home_privacy_already_public: '[Error:](#ff3300) [Your home is already set to public.](#ff7e5e)' +error_edit_home_privacy_already_private: '[Error:](#ff3300) [Your home is already set to private.](#ff7e5e)' +error_edit_home_privacy_no_permission: '[Error:](#ff3300) [You do not have permission to make homes public.](#ff7e5e)' +error_edit_home_invalid_description: '[Error:](#ff3300) [Home descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_) and must be less than 255 characters in length.](#ff7e5e)' +edit_home_update_location: '[Re-located](#00fb9a) [%1%](#00fb9a bold) [to your current position.](#00fb9a)' +edit_home_update_description: '[Changed the description for](#00fb9a) [%1%](#00fb9a bold) [to "%2%"](#00fb9a)' +edit_home_update_name: '[Successfully changed your home''s name: %1% →](#00fb9a) [%2%](#00fb9a bold)' +error_no_homes_set: '[Error:](#ff3300) [You haven''t set any homes!](#ff7e5e)' +error_no_public_homes_set: '[Error:](#ff3300) [There aren''t any public homes set!](#ff7e5e)' +error_no_warps_set: '[Error:](#ff3300) [There aren''t any warps set!](#ff7e5e)' +private_home_list_page_top: '[%1%''s Homes:](#00fb9a) ([%2%-%3%](#00fb9a bold) [of](#00fb9a) [%4%](#00fb9a bold))' +public_home_list_page_top: '[Public Homes:](#00fb9a) ([%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold))' home_list_page_empty: '&7(There are no homes to list on this page)' -warp_list_page_top: '&aWarps: (&l%1%-%2%&r&a of &l%3%&r&a)' +warp_list_page_top: '[Warps:](#00fb9a) ([%1%-%2%](#00fb9a bold) [of](#00fb9a] [%3%](#00fb9a bold))' warp_list_page_empty: '&7(There are no warps to list on this page)' -error_public_home_invalid: '&4Error: &cCould not find a public home owned by %1% called %2%.' -error_set_home_invalid_characters: '&4Error: &cHome names must be alphanumeric (A-Z, 0-9, -_)' -error_set_home_invalid_length: '&4Error: &cHome names can only contain up to 16 characters!' -error_set_warp_invalid_characters: '&4Error: &cWarp names must be alphanumeric (A-Z,0-9, -_)' -error_set_warp_invalid_length: '&4Error: &cWarp names can only contain up to 16 characters!' -error_set_home_maximum_homes: '&4Error: &cYou can only set a maximum of %1% homes!' -error_insufficient_funds: '&4Error: &cYou do not have enough money! (Cost: %1%)' -set_home_spent_money: '&7Successfully spent %1% to set an additional home!' -set_home_used_free_slots: '&7You''ve used all of your free set home slots (%1%); setting additional homes will cost %2% each.' -set_home_success: '&aSuccessfully set a new home called &l%1%' -set_warp_success: '&aSuccessfully set a new warp called &l%1%' -error_set_home_name_taken: '&4Error: &cYou already have a home set with that name.' -error_set_warp_name_taken: '&4Error: &cThere is already a warp set with that name.' -set_spawn_success: '&aUpdated /spawn command location for this server to your current position.' -error_spawn_undefined: '&4Error: &cThere is no spawn location defined on this server.' -error_tpa_no_pending_request: '&4Error: &cYou do not have a pending teleport request.' -error_tpa_request_expired: '&4Error: &cYour pending teleport request has expired.' -error_player_not_found: '&4Error: &cCould not find the player %1%.' -return_by_death: '&7Return to where you died?:' -option_selection_prompt: '&7Click an option: &r' -tpa_accept_button: '[Accept]' -tpa_accept_button_tooltip: 'Accept the teleport request (/tpaccept)' -tpa_decline_button: '[Decline]' -tpa_decline_button_tooltip: 'Decline the teleport request (/tpdeny)' -tpa_you_accepted: '&aYou accepted %1%''s teleport request' -tpa_you_declined: '&cYou declined %1%''s teleport request' -tpa_has_accepted: '&a%1% accepted your teleport request' -tpa_has_declined: '&c%1% declined your teleport request' -tpa_request_sent: '&aYou sent a teleport request to teleport to %1%' -tpa_request_ask: '&a%1% has requested to teleport to you' -tpahere_request_sent: '&aYou sent a teleport request asking %1% to teleport to you' -tpahere_request_ask: '&a%1% has requested that you teleport to them' -error_tp_self: '&4Error: &cYou can''t teleport to yourself!' -error_rtp_invalid_dimension: '&4Error: &cYou can only randomly teleport in the Overworld!' -error_rtp_cooldown: '&4Error: &cYou must wait %1% minutes before randomly teleporting again.' -rtp_spent_money: '&7Spent %1% to randomly teleport.' -back_spent_money: '&7Spent %1% to return to your last position.' -error_command_disabled: '&4Error: &cThat command is disabled!' -error_console_only: '&4Error: &cThat command can only be run from the server console.' -error_tp_invalid_world: '&4Error: &cPlease specify a valid server world.' -error_rtp_randomization_timeout: '&4Error: &cFailed to find a safe random location to teleport you.' -edit_warp_title: '&aEdit details for the warp &l%1%&r&a:' -error_edit_warp_invalid_description: '&4Error: &cWarp descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_) and must be less than 255 characters in length' -edit_warp_update_location: '&aRe-located the warp &l%1% &r&ato your current position.' -edit_warp_update_description: '&aChanged the description for the warp &l%1%&r&a to "%2%".' -edit_warp_update_name: '&aSuccessfully changed a warp''s name: %1% → &l%2%' +error_public_home_invalid: '[Error:](#ff3300) [Could not find a public home owned by %1% called %2%.](#ff7e5e)' +error_set_home_invalid_characters: '[Error:](#ff3300) [Home names must be alphanumeric (A-Z, 0-9, -_)](#ff7e5e)' +error_set_home_invalid_length: '[Error:](#ff3300) [Home names can only contain up to 16 characters!](#ff7e5e)' +error_set_warp_invalid_characters: '[Error:](#ff3300) [Warp names must be alphanumeric (A-Z,0-9, -_)](#ff7e5e)' +error_set_warp_invalid_length: '[Error:](#ff3300) [Warp names can only contain up to 16 characters!](#ff7e5e)' +error_set_home_maximum_homes: '[Error:](#ff3300) [You can only set a maximum of %1% homes!](#ff7e5e)' +error_insufficient_funds: '[Error:](#ff3300) [You do not have enough money! (Cost: %1%)](#ff7e5e)' +set_home_spent_money: '[Successfully spent %1% to set an additional home!](gray)' +set_home_used_free_slots: '[You''ve used all of your free set home slots (%1%); setting additional homes will cost %2% each.](gray)' +set_home_success: '[Successfully set a new home called](#00fb9a) [%1%](#00fb9a bold)' +set_warp_success: '[Successfully set a new warp called](#00fb9a) [%1%](#00fb9a bold)' +error_set_home_name_taken: '[Error:](#ff3300) [You already have a home set with that name.](#ff7e5e)' +error_set_warp_name_taken: '[Error:](#ff3300) [There is already a warp set with that name.](#ff7e5e)' +set_spawn_success: '[Updated /spawn command location for this server to your current position.](#00fb9a)' +error_spawn_undefined: '[Error:](#ff3300) [There is no spawn location defined on this server.](#ff7e5e)' +error_tpa_no_pending_request: '[Error:](#ff3300) [You do not have a pending teleport request.](#ff7e5e)' +error_tpa_request_expired: '[Error:](#ff3300) [Your pending teleport request has expired.](#ff7e5e)' +error_player_not_found: '[Error:](#ff3300) [Could not find the player %1%.](#ff7e5e)' +return_by_death: '[Return to where you died?](gray) [/back](#00fb9a show_text=�fb9a&Click to return to where you died run_command=/back)' +teleport_request_options: '[Click an option:](gray) [[Accept]](#00fb9a show_text=�fb9a&Accept the teleport request; /tpaccept run_command=/tpaccept) [•](gray) [[Decline]](#ff7e5e show_text=&#ff7e5e&Decline the teleport request; /tpdeny run_command=/tpaccept)' +tpa_you_accepted: '[You accepted %1%''s teleport request](#00fb9a)' +tpa_you_declined: '[You declined %1%''s teleport request](#ff7e5e)' +tpa_has_accepted: '[%1% accepted your teleport request](#00fb9a)' +tpa_has_declined: '[%1% declined your teleport request](#ff7e5e)' +tpa_request_sent: '[You sent a teleport request to teleport to](#00fb9a) [%1%](#00fb9a bold)' +tpa_request_ask: '[%1%](#00fb9a bold) [has requested to teleport to you](#00fb9a)' +tpahere_request_sent: '[You sent a teleport request asking](#00fb9a) [%1%](#00fb9a bold) [to teleport to you](#00fb9a)' +tpahere_request_ask: '[%1%](#00fb9a bold) [has requested that you teleport to them](#00fb9a)' +error_tp_self: '[Error:](#ff3300) [You can''t teleport to yourself!](#ff7e5e)' +error_rtp_invalid_dimension: '[Error:](#ff3300) [You can only randomly teleport in the overworld!](#ff7e5e)' +error_rtp_cooldown: '[Error:](#ff3300) [You must wait %1% minutes before randomly teleporting again.](#ff7e5e)' +rtp_spent_money: '[Spent %1% to randomly teleport.](gray)' +back_spent_money: '[Spent %1% to return to your last position.](gray)' +error_command_disabled: '[Error:](#ff3300) [That command is disabled!](#ff7e5e)' +error_console_only: '[Error:](#ff3300) [That command can only be run from the server console.](#ff7e5e)' +error_tp_invalid_world: '[Error:](#ff3300) [Please specify a valid server world.](#ff7e5e)' +error_rtp_randomization_timeout: '[Error:](#ff3300) [Failed to find a safe random location to teleport you.](#ff7e5e)' +edit_warp_title: '[Edit details for the warp](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)' +error_edit_warp_invalid_description: '[Error:](#ff3300) [Warp descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_) and must be less than 255 characters in length](#ff7e5e)' +edit_warp_update_location: '[Re-located the warp](#00fb9a) [%1%](#00fb9a bold) [to your current position.](#00fb9a)' +edit_warp_update_description: '[Changed the description for the warp](#00fb9a) [%1%](#00fb9a bold) [to "%2%".](#00fb9a)' +edit_warp_update_name: '[Successfully changed a warp''s name: %1% →](#00fb9a) [%2%](#00fb9a bold)' list_button_next_page: '[Next Page >]' list_button_next_page_tooltip: 'Click to view next %1%' list_button_previous_page: '[< Last Page]' list_button_previous_page_tooltip: 'Click to view previous %1%' -list_item_divider: '&7 • ' +list_item_divider: ' [•](gray) ' home_list_item: '&f[&o%1%&r&f]' public_home_list_item: '&f[&o%1%&r&f]' warp_list_item: '&f[&o%1%&r&f]' @@ -118,13 +114,13 @@ edit_home_make_private_button: '[Make Private]' edit_home_make_private_button_tooltip: 'Make your home private' home_default_description: '%1%''s home' warp_default_description: 'A publicly accessible warp' -delete_all_homes_confirm: '&4Warning: &cAre you sure you wish to delete &lall&r&c of your homes?' -delete_all_warps_confirm: '&4Warning: &cAre you sure you wish to delete &lall&r&c server warps?' -delete_all_irreversible_warning: '&7Once you press Confirm, it will not be possible to recover them.' +delete_all_homes_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all of your homes?](#ff7e5e)' +delete_all_warps_confirm: '[Warning:](#ff3300) [Are you sure you want to delete every warp?](#ff7e5e)' +delete_all_irreversible_warning: '[Once you confirm, it will not be possible to recover them.](gray)' delete_confirmation_button_tooltip: 'Click to confirm deletion. This cannot be undone.' -delete_confirmation_button: '&4[Confirm]' -delete_all_homes_success: '&aSuccessfully deleted your &l%1%&r&a home(s).' -delete_all_warps_success: '&aSuccessfully deleted all &l%1%&r&a server warp(s).' -error_permission_restricted_warp: '&4Error: &cYou do not have permission to warp to %1%!' -teleporting_complete_console: '&7(Console teleported you to %1%)' +delete_confirmation_button: '&#ff3300&[Confirm]' +delete_all_homes_success: '[Successfully deleted your](#00fb9a) [%1%](#00fb9a bold) [home(s).](#00fb9a)' +delete_all_warps_success: '[Successfully deleted all](#00fb9a) [%1%](#00fb9a bold) [server warp(s).](#00fb9a)' +error_permission_restricted_warp: '[Error:](#ff3300) [You do not have permission to warp to %1%!](#ff7e5e)' +teleporting_complete_console: '[Console teleported you to %1%.](gray)' spawn_warp_default_description: 'The /spawn position of the server' \ No newline at end of file