markerIconSet = dynmapAPI.getMarkerAPI().getMarkerIcons();
- for (MarkerIcon icon : markerIconSet) {
- if (icon.getMarkerIconID().equals(WARP_MARKER_IMAGE_NAME) || icon.getMarkerIconID().equalsIgnoreCase(PUBLIC_HOME_MARKER_IMAGE_NAME)) {
- dynmapAPI.getMarkerAPI().getMarkerIcons().remove(icon);
- }
- }
- dynmapAPI.getMarkerAPI().createMarkerIcon(WARP_MARKER_IMAGE_NAME, "Warp", getScaledMarkerIconStream(getWarpIcon()));
- dynmapAPI.getMarkerAPI().createMarkerIcon(PUBLIC_HOME_MARKER_IMAGE_NAME, "Public Home", getScaledMarkerIconStream(getPublicHomeIcon()));
-
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- if (HuskHomes.getSettings().showPublicHomesOnMap()) {
- dynmapAPI.getMarkerAPI().createMarkerSet(PUBLIC_HOMES_MARKER_SET_ID, HuskHomes.getSettings().getMapPublicHomeMarkerSet(), dynmapAPI.getMarkerAPI().getMarkerIcons(), false);
- for (Home home : DataManager.getPublicHomes(connection)) {
- if (!HuskHomes.getSettings().doBungee() || home.getServer().equals(HuskHomes.getSettings().getServerID())) {
- Bukkit.getScheduler().runTask(plugin, () -> addPublicHomeMarker(home));
- }
- }
- }
- if (HuskHomes.getSettings().showWarpsOnMap()) {
- dynmapAPI.getMarkerAPI().createMarkerSet(WARPS_MARKER_SET_ID, HuskHomes.getSettings().getMapWarpMarkerSet(), dynmapAPI.getMarkerAPI().getMarkerIcons(), false);
- for (Warp warp : DataManager.getWarps(connection)) {
- if (!HuskHomes.getSettings().doBungee() || warp.getServer().equals(HuskHomes.getSettings().getServerID())) {
- Bukkit.getScheduler().runTask(plugin, () -> addWarpMarker(warp));
- }
- }
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.WARNING, "An SQL exception occurred adding homes and warps to the DynMap", e);
- }
- });
-
- }
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/integrations/map/Map.java b/src/main/java/me/william278/huskhomes2/integrations/map/Map.java
deleted file mode 100644
index 4febd662..00000000
--- a/src/main/java/me/william278/huskhomes2/integrations/map/Map.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package me.william278.huskhomes2.integrations.map;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.teleport.points.Home;
-import me.william278.huskhomes2.teleport.points.Warp;
-
-import javax.imageio.ImageIO;
-import java.awt.image.BufferedImage;
-import java.io.File;
-import java.io.IOException;
-import java.util.logging.Level;
-
-import static org.apache.commons.lang.StringEscapeUtils.escapeHtml;
-
-public abstract class Map {
-
- public Map() {
- }
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
-
- public static final String PUBLIC_HOMES_MARKER_SET_ID = "huskhomes.public_homes";
- public static final String WARPS_MARKER_SET_ID = "huskhomes.warps";
-
- public static final String PUBLIC_HOME_MARKER_IMAGE_NAME = "public_home";
- public static final String WARP_MARKER_IMAGE_NAME = "warp";
-
- public BufferedImage getWarpIcon() {
- return getMarkerIcon(WARP_MARKER_IMAGE_NAME);
- }
-
- public BufferedImage getPublicHomeIcon() {
- return getMarkerIcon(PUBLIC_HOME_MARKER_IMAGE_NAME);
- }
-
- private BufferedImage getMarkerIcon(String name) {
- final String filePath = "marker-icons" + File.separator + name + ".png";
- File file = new File(plugin.getDataFolder(), filePath);
- if (!file.exists()) {
- plugin.saveResource(filePath, false);
- }
- BufferedImage image = null;
- try {
- image = ImageIO.read(file);
- } catch (IOException e) {
- plugin.getLogger().log(Level.SEVERE, "Failed to load " + name + " marker icon image!", e);
- }
- return image;
- }
-
- public abstract void addWarpMarker(Warp warp);
-
- public abstract void removeWarpMarker(String warpName);
-
- public abstract void addPublicHomeMarker(Home home);
-
- public abstract void removePublicHomeMarker(String homeName, String ownerName);
-
- public abstract void initialize();
-
- public String getPublicHomeMarkerName(String ownerName, String homeName) {
- return PUBLIC_HOMES_MARKER_SET_ID + "." + ownerName + "." + homeName;
- }
-
- public String getWarpMarkerName(String warpName) {
- return WARPS_MARKER_SET_ID + "." + warpName;
- }
-
- public String getWarpInfoMenu(Warp warp) {
- String warpPopup = "/warp %WARP_NAME%
Description: %DESCRIPTION%
";
- warpPopup = warpPopup.replace("%WARP_NAME%", escapeHtml(warp.getName()));
- warpPopup = warpPopup.replace("%DESCRIPTION%", escapeHtml(warp.getDescription()));
- return warpPopup;
- }
-
- public String getPublicHomeInfoMenu(Home home) {
- String publicHomePopup = "/phome %OWNER%.%HOME_NAME%
Owner: %OWNER%
Description: %DESCRIPTION%
";
- publicHomePopup = publicHomePopup.replace("%HOME_NAME%", escapeHtml(home.getName()));
- publicHomePopup = publicHomePopup.replace("%OWNER%", escapeHtml(home.getOwnerUsername()));
- publicHomePopup = publicHomePopup.replace("%DESCRIPTION%", escapeHtml(home.getDescription()));
- return publicHomePopup;
- }
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/integrations/map/SquareMap.java b/src/main/java/me/william278/huskhomes2/integrations/map/SquareMap.java
deleted file mode 100644
index 92694050..00000000
--- a/src/main/java/me/william278/huskhomes2/integrations/map/SquareMap.java
+++ /dev/null
@@ -1,207 +0,0 @@
-package me.william278.huskhomes2.integrations.map;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.data.DataManager;
-import me.william278.huskhomes2.teleport.points.Home;
-import me.william278.huskhomes2.teleport.points.Warp;
-import org.bukkit.Bukkit;
-import org.bukkit.World;
-import org.bukkit.event.EventHandler;
-import org.bukkit.event.Listener;
-import org.bukkit.event.world.WorldLoadEvent;
-import xyz.jpenilla.squaremap.api.*;
-import xyz.jpenilla.squaremap.api.marker.Icon;
-import xyz.jpenilla.squaremap.api.marker.Marker;
-import xyz.jpenilla.squaremap.api.marker.MarkerOptions;
-
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.util.HashMap;
-import java.util.logging.Level;
-
-public class SquareMap extends Map {
-
- private final HashMap publicHomeProviders = new HashMap<>();
- private final HashMap warpProviders = new HashMap<>();
- private final static int MARKER_SIZE = 20;
- private final static HuskHomes plugin = HuskHomes.getInstance();
-
- @Override
- public void addWarpMarker(Warp warp) {
- World world = Bukkit.getWorld(warp.getWorldName());
- if (world != null) {
- for (WorldIdentifier worldIdentifier : warpProviders.keySet()) {
- if (worldIdentifier.value().equals(world.getName())) {
- Icon marker = Marker.icon(
- Point.of(warp.getX(), warp.getZ()),
- Key.of(WARP_MARKER_IMAGE_NAME),
- MARKER_SIZE);
- marker.markerOptions(MarkerOptions.builder()
- .hoverTooltip(warp.getName())
- .clickTooltip(getWarpInfoMenu(warp))
- .build());
- warpProviders.get(worldIdentifier).addMarker(Key.of(getWarpMarkerName(warp.getName())), marker);
- break;
- }
- }
- }
- }
-
- @Override
- public void removeWarpMarker(String warpName) {
- final Key warpMarkerKey = Key.of(getWarpMarkerName(warpName));
- removeMarker(warpMarkerKey, warpProviders);
- }
-
- @Override
- public void addPublicHomeMarker(Home home) {
- World world = Bukkit.getWorld(home.getWorldName());
- if (world != null) {
- for (WorldIdentifier worldIdentifier : publicHomeProviders.keySet()) {
- if (worldIdentifier.value().equals(world.getName())) {
- Icon marker = Marker.icon(
- Point.of(home.getX(), home.getZ()),
- Key.of(PUBLIC_HOME_MARKER_IMAGE_NAME),
- MARKER_SIZE);
- marker.markerOptions(MarkerOptions.builder()
- .hoverTooltip(home.getName())
- .clickTooltip(getPublicHomeInfoMenu(home))
- .build());
- publicHomeProviders.get(worldIdentifier).addMarker(
- Key.of(getPublicHomeMarkerName(home.getOwnerUsername(), home.getName())), marker);
- break;
- }
- }
- }
- }
-
- @Override
- public void removePublicHomeMarker(String homeName, String ownerName) {
- final Key publicHomeMarkerKey = Key.of(getPublicHomeMarkerName(ownerName, homeName));
- removeMarker(publicHomeMarkerKey, publicHomeProviders);
- }
-
- @Override
- public void initialize() {
- Squaremap mapAPI = SquaremapProvider.get();
- plugin.getServer().getPluginManager().registerEvents(new SquareMapWorldLoadListener(), plugin);
- plugin.getLogger().info("Initializing Squaremap integration");
-
- final Key publicHomeMarkerIconKey = Key.of(PUBLIC_HOME_MARKER_IMAGE_NAME);
- final Key warpMarkerIconKey = Key.of(WARP_MARKER_IMAGE_NAME);
-
- // Make sure markers are unregistered, then register marker icon keys
- if (SquaremapProvider.get().iconRegistry().hasEntry(publicHomeMarkerIconKey)) {
- SquaremapProvider.get().iconRegistry().unregister(publicHomeMarkerIconKey);
- }
- SquaremapProvider.get().iconRegistry().register(publicHomeMarkerIconKey, getPublicHomeIcon());
- if (SquaremapProvider.get().iconRegistry().hasEntry(warpMarkerIconKey)) {
- SquaremapProvider.get().iconRegistry().unregister(warpMarkerIconKey);
- }
- SquaremapProvider.get().iconRegistry().register(warpMarkerIconKey, getWarpIcon());
-
- for (MapWorld world : mapAPI.mapWorlds()) {
- loadWorld(world);
- }
-
- // Populate map with markers
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- if (HuskHomes.getSettings().showPublicHomesOnMap()) {
- for (Home home : DataManager.getPublicHomes(connection)) {
- if (!HuskHomes.getSettings().doBungee() || home.getServer().equals(HuskHomes.getSettings().getServerID())) {
- Bukkit.getScheduler().runTask(plugin, () -> addPublicHomeMarker(home));
- }
- }
- }
- if (HuskHomes.getSettings().showWarpsOnMap()) {
- for (Warp warp : DataManager.getWarps(connection)) {
- if (!HuskHomes.getSettings().doBungee() || warp.getServer().equals(HuskHomes.getSettings().getServerID())) {
- Bukkit.getScheduler().runTask(plugin, () -> addWarpMarker(warp));
- }
- }
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.WARNING, "An SQL exception occurred adding homes and warps to the Squaremap");
- }
- });
- }
-
- // Removes a marker from the Squaremap Marker API
- private void removeMarker(Key markerKey, HashMap layerProviders) {
- WorldIdentifier markerWorld = null;
- for (WorldIdentifier worldIdentifier : layerProviders.keySet()) {
- SimpleLayerProvider warpProvider = layerProviders.get(worldIdentifier);
- if (warpProvider.hasMarker(markerKey)) {
- markerWorld = worldIdentifier;
- break;
- }
- }
- if (markerWorld != null) {
- layerProviders.get(markerWorld).removeMarker(markerKey);
- }
- }
-
- // Loads the world
- private void loadWorld(MapWorld world) {
- // Register public home map layer
- SimpleLayerProvider publicHomeProvider =
- SimpleLayerProvider.builder(HuskHomes.getSettings().getMapPublicHomeMarkerSet())
- .showControls(true)
- .defaultHidden(false)
- .layerPriority(6)
- .zIndex(250)
- .build();
- world.layerRegistry().register(Key.of(PUBLIC_HOMES_MARKER_SET_ID), publicHomeProvider);
- publicHomeProviders.put(world.identifier(), publicHomeProvider);
-
- // Register warps map layer
- SimpleLayerProvider warpProvider =
- SimpleLayerProvider.builder(HuskHomes.getSettings().getMapWarpMarkerSet())
- .showControls(true)
- .defaultHidden(false)
- .layerPriority(7)
- .zIndex(250)
- .build();
- world.layerRegistry().register(Key.of(WARPS_MARKER_SET_ID), warpProvider);
- warpProviders.put(world.identifier(), warpProvider);
-
- }
-
- public class SquareMapWorldLoadListener implements Listener {
-
- @EventHandler
- public void onWorldLoad(WorldLoadEvent e) {
- Squaremap mapAPI = SquaremapProvider.get();
- mapAPI.getWorldIfEnabled(BukkitAdapter.worldIdentifier(e.getWorld())).ifPresent(SquareMap.this::loadWorld);
-
- // Populate map with markers
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- if (HuskHomes.getSettings().showPublicHomesOnMap()) {
- for (Home home : DataManager.getPublicHomes(connection)) {
- if (home.getWorldName().equals(e.getWorld().getName())) {
- if (!HuskHomes.getSettings().doBungee() || home.getServer().equals(HuskHomes.getSettings().getServerID())) {
- Bukkit.getScheduler().runTask(plugin, () -> addPublicHomeMarker(home));
- }
- }
- }
- }
- if (HuskHomes.getSettings().showWarpsOnMap()) {
- for (Warp warp : DataManager.getWarps(connection)) {
- if (warp.getWorldName().equals(e.getWorld().getName())) {
- if (!HuskHomes.getSettings().doBungee() || warp.getServer().equals(HuskHomes.getSettings().getServerID())) {
- Bukkit.getScheduler().runTask(plugin, () -> addWarpMarker(warp));
- }
- }
- }
- }
- } catch (SQLException exception) {
- plugin.getLogger().log(Level.WARNING, "An SQL exception occurred adding homes and warps to the Squaremap");
- }
- });
- }
-
- }
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java b/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java
deleted file mode 100644
index 4e5e6fff..00000000
--- a/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java
+++ /dev/null
@@ -1,138 +0,0 @@
-package me.william278.huskhomes2.listeners;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.util.MessageManager;
-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 org.bukkit.Bukkit;
-import org.bukkit.Location;
-import org.bukkit.entity.Player;
-import org.bukkit.event.EventHandler;
-import org.bukkit.event.Listener;
-import org.bukkit.event.entity.PlayerDeathEvent;
-import org.bukkit.event.player.PlayerJoinEvent;
-import org.bukkit.event.player.PlayerQuitEvent;
-
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.util.UUID;
-import java.util.logging.Level;
-
-public class PlayerListener implements Listener {
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
-
- @EventHandler
- public void onPlayerDie(PlayerDeathEvent e) {
- Player p = e.getEntity();
- if (p.hasPermission("huskhomes.back.death")) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- DataManager.setPlayerLastPosition(p, new TeleportationPoint(p.getLocation(), HuskHomes.getSettings().getServerID()), connection);
- MessageManager.sendMessage(p, "return_by_death");
- } catch (SQLException sqlException) {
- plugin.getLogger().log(Level.SEVERE, "An SQL error occurred updating the last position of a player when they died", sqlException);
- }
- });
- }
- }
-
- @EventHandler
- public void onPlayerJoin(PlayerJoinEvent e) {
- Player p = e.getPlayer();
-
- // Create player on SQL if they don't exist already
- try {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- if (!DataManager.playerExists(p, connection)) {
- DataManager.createPlayer(p, connection);
- if (TeleportManager.getSpawnLocation().isPresent()) {
- teleportToSpawn(p);
- return;
- }
- } else {
- // Check if they've changed their name and update if so
- DataManager.checkPlayerNameChange(p, connection);
-
- // Update their TAB cache for /home command
- HomeCommand.Tab.updatePlayerHomeCache(p);
- }
-
- final Boolean isIgnoringRequests = DataManager.isPlayerIgnoringRequests(p.getUniqueId(), connection);
- if (isIgnoringRequests != null) {
- if (isIgnoringRequests) {
- HuskHomes.setIgnoringTeleportRequests(p.getUniqueId());
- MessageManager.sendMessage(p, "tpignore_on_reminder");
- }
- }
-
- // If bungee mode, check if the player joined the server from a teleport and act accordingly
- if (HuskHomes.getSettings().doBungee()) {
- final Boolean isTeleporting = DataManager.isPlayerTeleporting(p.getUniqueId(), connection);
- if (isTeleporting != null) {
- if (isTeleporting) {
- TeleportManager.teleportPlayer(p);
- } else {
- if (HuskHomes.getSettings().doForceSpawnOnLogin()) {
- teleportToSpawn(p);
- }
- }
- }
- } else {
- if (HuskHomes.getSettings().doForceSpawnOnLogin()) {
- if (TeleportManager.getSpawnLocation().isPresent()) {
- teleportToSpawn(p);
- }
- }
- }
- } catch (SQLException sqlException) {
- plugin.getLogger().log(Level.SEVERE, "An SQL error handling a joining player", sqlException);
- }
- });
- } catch (NullPointerException ignored) {
- } // Ignore NullPointerExceptions from players that execute this event and return null (e.g Citizens).
-
- // Update the player list
- if (HuskHomes.getSettings().doBungee()) {
- HuskHomes.getPlayerList().updateList(p);
- } else {
- if (Bukkit.getOnlinePlayers().size() == 1) {
- HuskHomes.getPlayerList().updateList(p);
- } else {
- HuskHomes.getPlayerList().addPlayer(p.getName());
- }
- }
- }
-
- private void teleportToSpawn(Player player) {
- TeleportManager.getSpawnLocation().ifPresent(teleportationPoint -> {
- final Location spawnLocation = teleportationPoint.getLocation();
- if (spawnLocation.isWorldLoaded()) {
- TeleportManager.teleportLocally(player, spawnLocation, false);
- }
- });
- }
-
- @EventHandler
- public void onPlayerQuit(PlayerQuitEvent e) {
- Player p = e.getPlayer();
- final UUID uuid = p.getUniqueId();
- if (!HuskHomes.isTeleporting(uuid)) {
- final Location logOutLocation = p.getLocation();
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- DataManager.setPlayerOfflinePosition(uuid,
- new TeleportationPoint(logOutLocation, HuskHomes.getSettings().getServerID()),
- connection);
- } catch (SQLException ex) {
- Bukkit.getLogger().severe("An SQL exception occurred in retrieving if a warp exists from the table.");
- }
- });
- } else {
- HuskHomes.setNotTeleporting(uuid);
- }
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/migrators/EssentialsMigrator.java b/src/main/java/me/william278/huskhomes2/migrators/EssentialsMigrator.java
deleted file mode 100644
index f9d6d313..00000000
--- a/src/main/java/me/william278/huskhomes2/migrators/EssentialsMigrator.java
+++ /dev/null
@@ -1,214 +0,0 @@
-package me.william278.huskhomes2.migrators;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.util.MessageManager;
-import me.william278.huskhomes2.data.DataManager;
-import me.william278.huskhomes2.teleport.SettingHandler;
-import me.william278.huskhomes2.teleport.TeleportManager;
-import me.william278.huskhomes2.teleport.points.Home;
-import me.william278.huskhomes2.teleport.points.TeleportationPoint;
-import me.william278.huskhomes2.teleport.points.Warp;
-import org.bukkit.Bukkit;
-import org.bukkit.Location;
-import org.bukkit.World;
-import org.bukkit.configuration.ConfigurationSection;
-import org.bukkit.configuration.file.FileConfiguration;
-
-import java.io.File;
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.time.Instant;
-import java.util.Set;
-import java.util.UUID;
-import java.util.logging.Level;
-
-import static org.bukkit.configuration.file.YamlConfiguration.loadConfiguration;
-
-public class EssentialsMigrator {
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
-
- public static void migrate() {
- migrate(null, HuskHomes.getSettings().getServerID());
- }
-
- // Migrate data from EssentialsX
- public static void migrate(final String worldFilter, final String targetServer) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- HuskHomes.backupDatabase();
- final File essentialsDataFolder = new File(Bukkit.getWorldContainer() + File.separator + "plugins" + File.separator + "Essentials");
-
- if (essentialsDataFolder.exists()) {
- plugin.getLogger().info("Essentials plugin data found!");
- if (worldFilter != null) {
- plugin.getLogger().info("Started Filtered Migration from EssentialsX:\n• World to migrate from: " + worldFilter + "\n• Target server: " + targetServer);
- } else {
- plugin.getLogger().info("Started Migration from EssentialsX...\n");
- }
-
- // Migrate user data
- File essentialsPlayerDataFolder = new File(Bukkit.getWorldContainer() + File.separator + "plugins" + File.separator + "Essentials" + File.separator + "userdata");
- if (essentialsPlayerDataFolder.exists()) {
- File[] playerFiles = essentialsPlayerDataFolder.listFiles();
- if (playerFiles != null) {
- for (File playerFile : playerFiles) {
- try {
- final String fileName = playerFile.getName();
- final UUID playerUUID = UUID.fromString(fileName.substring(0, fileName.lastIndexOf(".")));
- FileConfiguration playerFileConfig = loadConfiguration(playerFile);
- final String playerName = playerFileConfig.getString("last-account-name", playerFileConfig.getString("lastAccountName"));
- try {
- try (Connection connection = HuskHomes.getConnection()) {
- if (!DataManager.playerExists(playerUUID, connection)) {
- DataManager.createPlayer(playerUUID, playerName, connection);
- }
- final ConfigurationSection homesSection = playerFileConfig.getConfigurationSection("homes");
- if (homesSection != null) {
- Set essentialsHomes = homesSection.getKeys(false);
- for (String homeName : essentialsHomes) {
- try {
- String worldID = playerFileConfig.getString("homes." + homeName + ".world", "world");
- try {
- final UUID worldUUID = UUID.fromString(worldID);
- final World world = Bukkit.getWorld(worldUUID);
- if (world != null) {
- worldID = world.getName();
- } else {
- plugin.getLogger().warning("✖ Could not migrate " + homeName + " as the world value was a UUID and is not loaded on this server.");
- continue;
- }
- } catch (IllegalArgumentException ignored) { }
- if (worldFilter != null) {
- if (!worldFilter.equalsIgnoreCase(worldID)) {
- continue;
- }
- }
- final double x = playerFileConfig.getDouble("homes." + homeName + ".x");
- final double y = playerFileConfig.getDouble("homes." + homeName + ".y");
- final double z = playerFileConfig.getDouble("homes." + homeName + ".z");
- final float pitch = (float) playerFileConfig.getDouble("homes." + homeName + ".pitch");
- final float yaw = (float) playerFileConfig.getDouble("homes." + homeName + ".yaw");
- final String homeDescription = MessageManager.getRawMessage("home_default_description", playerName);
-
- if (DataManager.homeExists(playerName, homeName, connection)) {
- plugin.getLogger().warning("✖ Failed to migrate home " + homeName + " (Already exists!)");
- continue;
- }
- DataManager.addHome(new Home(new TeleportationPoint(worldID, x, y, z, yaw, pitch, targetServer),
- playerName, playerUUID, homeName, homeDescription, false, Instant.now().getEpochSecond()), playerUUID, connection);
-
- plugin.getLogger().info("→ Migrated home " + homeName);
- } catch (NullPointerException | IllegalArgumentException e) {
- plugin.getLogger().warning("✖ Failed to migrate home " + homeName + "!");
- e.printStackTrace();
- }
- }
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred migrating Essentials home data.", e);
- }
-
- } catch (NullPointerException ignored) { }
- } catch (IllegalArgumentException ignored) { }
- }
- }
- }
-
- // Migrate warps
- File essentialsWarpsFolder = new File(Bukkit.getWorldContainer() + File.separator + "plugins" + File.separator + "Essentials" + File.separator + "warps");
- if (essentialsWarpsFolder.exists()) {
- final File[] warpFiles = essentialsWarpsFolder.listFiles();
-
- if (warpFiles != null) {
- for (File warpFile : warpFiles) {
- try (Connection connection = HuskHomes.getConnection()) {
- final FileConfiguration warpFileConfig = loadConfiguration(warpFile);
- final String warpName = warpFileConfig.getString("name");
- String worldID = warpFileConfig.getString("world", "world");
- try {
- final UUID worldUUID = UUID.fromString(worldID);
- final World world = Bukkit.getWorld(worldUUID);
- if (world != null) {
- worldID = world.getName();
- } else {
- plugin.getLogger().warning("✖ Could not migrate " + warpName + " as the world value was a UUID and is not loaded on this server.");
- continue;
- }
- } catch (IllegalArgumentException ignored) { }
- if (worldFilter != null) {
- if (!worldFilter.equalsIgnoreCase(worldID)) {
- continue;
- }
- }
- final double x = warpFileConfig.getDouble("x");
- final double y = warpFileConfig.getDouble("y");
- final double z = warpFileConfig.getDouble("z");
- final float yaw = (float) warpFileConfig.getDouble("yaw");
- final float pitch = (float) warpFileConfig.getDouble("pitch");
-
- if (DataManager.warpExists(warpName, connection)) {
- plugin.getLogger().warning("✖ Failed to migrate warp " + warpName + " (Already exists!)");
- continue;
- }
-
- DataManager.addWarp(new Warp(new TeleportationPoint(worldID, x, y, z, yaw, pitch, targetServer),
- warpName, MessageManager.getRawMessage("warp_default_description"), Instant.now().getEpochSecond()), connection);
- plugin.getLogger().info("→ Migrated warp " + warpName);
- } catch (NullPointerException | IllegalArgumentException e) {
- plugin.getLogger().warning("✖ Failed to migrate warp " + warpFile.getName());
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred migrating Essentials warp data!", e);
- return;
- }
- }
- }
- }
-
- // Migrate /spawn position
- if (TeleportManager.getSpawnLocation() == null && HuskHomes.getSettings().doCrossServerSpawn()) {
- File essentialsSpawnData = new File(Bukkit.getWorldContainer() + File.separator + "plugins" + File.separator + "Essentials" + File.separator + "spawn.yml");
- if (essentialsSpawnData.exists()) {
- plugin.getLogger().info("Migrating /spawn position from Essentials...");
-
- FileConfiguration spawnConfig = loadConfiguration(essentialsSpawnData);
- try {
- String worldID = spawnConfig.getString("spawns.all.world", "world");
- try {
- final UUID worldUUID = UUID.fromString(worldID);
- final World world = Bukkit.getWorld(worldUUID);
- if (world != null) {
- worldID = world.getName();
- } else {
- plugin.getLogger().warning("✖ Could not migrate the spawn position as the world value was a UUID and is not loaded on this server.");
- return;
- }
- } catch (IllegalArgumentException ignored) { }
- if (worldFilter != null) {
- if (!worldFilter.equalsIgnoreCase(worldID)) {
- plugin.getLogger().warning("✖ Did not migrate the /spawn position as the world filter did not match.");
- return;
- }
- }
- final double x = spawnConfig.getDouble("spawns.all.x");
- final double y = spawnConfig.getDouble("spawns.all.y");
- final double z = spawnConfig.getDouble("spawns.all.z");
- final float yaw = (float) spawnConfig.getDouble("spawns.all.yaw");
- final float pitch = (float) spawnConfig.getDouble("spawns.all.pitch");
-
- Location spawnLocation = new Location(Bukkit.getWorld(worldID), x, y, z, yaw, pitch);
- SettingHandler.setSpawnLocation(spawnLocation);
- plugin.getLogger().info("→ /spawn position has been migrated!\n");
- } catch (NullPointerException | IllegalArgumentException e) {
- plugin.getLogger().warning("✖ Failed to migrate the /spawn position.\n");
- }
- }
- } else {
- plugin.getLogger().info("✖ /spawn position migration from EssentialsX has been skipped as it has already been set or Cross Server Spawn has been enabled. Please re-set it again manually if you want.");
- }
- } else {
- plugin.getLogger().warning("Failed to Migrate from Essentials!");
- Bukkit.getLogger().warning("Could not find Essentials plugin data to migrate!");
- }
- });
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/migrators/UpgradeDatabase.java b/src/main/java/me/william278/huskhomes2/migrators/UpgradeDatabase.java
deleted file mode 100644
index d81a5b9c..00000000
--- a/src/main/java/me/william278/huskhomes2/migrators/UpgradeDatabase.java
+++ /dev/null
@@ -1,117 +0,0 @@
-package me.william278.huskhomes2.migrators;
-
-import me.william278.huskhomes2.HuskHomes;
-import org.checkerframework.checker.units.qual.C;
-
-import java.sql.Connection;
-import java.sql.PreparedStatement;
-import java.sql.SQLException;
-
-public class UpgradeDatabase {
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
-
- private static final String[] mySQLUpgradeStatements = {
- "ALTER TABLE " + HuskHomes.getSettings().getPlayerDataTable()
- + " ADD `is_ignoring_requests` boolean NOT NULL DEFAULT 0, "
- + "ADD `offline_location_id` integer NULL DEFAULT NULL, "
- + "ADD FOREIGN KEY (`offline_location_id`) REFERENCES " + HuskHomes.getSettings().getLocationsDataTable() + " (`location_id`) ON DELETE SET NULL ON UPDATE NO ACTION;"};
-
- private static final String[] SQLiteUpgradeStatements = {
- "ALTER TABLE " + HuskHomes.getSettings().getPlayerDataTable() + " ADD `is_ignoring_requests` boolean NOT NULL DEFAULT 0;",
-
- "ALTER TABLE " + HuskHomes.getSettings().getPlayerDataTable() + " ADD `offline_location_id` integer NULL DEFAULT NULL;",
-
- "CREATE TABLE " + HuskHomes.getSettings().getPlayerDataTable() + "_dg_tmp (" +
- "`player_id` integer NOT NULL PRIMARY KEY," +
- "`user_uuid` char(36) NOT NULL UNIQUE," +
- "`username` varchar(16) NOT NULL," +
- "`home_slots` integer NOT NULL," +
- "`rtp_cooldown` integer NOT NULL," +
- "`is_teleporting` boolean NOT NULL," +
- "`dest_location_id` integer REFERENCES " + HuskHomes.getSettings().getLocationsDataTable() + " ON DELETE SET NULL," +
- "`last_location_id` integer REFERENCES " + HuskHomes.getSettings().getLocationsDataTable() + " ON DELETE SET NULL," +
- "`offline_location_id` integer DEFAULT NULL CONSTRAINT " + HuskHomes.getSettings().getPlayerDataTable() + "_" + HuskHomes.getSettings().getLocationsDataTable() + "_location_id_fk REFERENCES " + HuskHomes.getSettings().getLocationsDataTable() + "," +
- "`is_ignoring_requests` boolean DEFAULT false NOT NULL" +
- ");",
-
- "INSERT INTO " + HuskHomes.getSettings().getPlayerDataTable() + "_dg_tmp(player_id, user_uuid, username, home_slots, rtp_cooldown, is_teleporting, dest_location_id, last_location_id, offline_location_id, is_ignoring_requests) select player_id, user_uuid, username, home_slots, rtp_cooldown, is_teleporting, dest_location_id, last_location_id, offline_location_id, is_ignoring_requests FROM " + HuskHomes.getSettings().getPlayerDataTable() + ";",
-
- "PRAGMA foreign_keys = OFF;",
-
- "DROP TABLE " + HuskHomes.getSettings().getPlayerDataTable() + ";",
-
- "ALTER TABLE " + HuskHomes.getSettings().getPlayerDataTable() + "_dg_tmp RENAME TO " + HuskHomes.getSettings().getPlayerDataTable() + ";",
-
- "PRAGMA foreign_keys = ON;"
- };
-
- // Upgrade the database system if the config file version is not high enough
- public static void upgradeDatabase() {
- plugin.reloadConfig(); //todo fix broken upgrade from v2.7 (config version 6)
- if (plugin.getConfig().getInt("config_file_version", 1) <= 5) {
- plugin.getLogger().info("Database upgrade needed: Adding logout position tracking and ignoring request data...");
- HuskHomes.backupDatabase(); // Backup database before upgrades are carried out!
- String[] statements = SQLiteUpgradeStatements;
- if (HuskHomes.getSettings().getDatabaseType().equalsIgnoreCase("mysql")) {
- statements = mySQLUpgradeStatements;
- }
- int i = 1;
- for (String statement : statements) {
- try (Connection connection = HuskHomes.getConnection()) {
- try (PreparedStatement tableUpdateStatement = connection.prepareStatement(statement)) {
- tableUpdateStatement.execute();
- plugin.getLogger().info("Database upgrade in progress... (" + i + "/" + statements.length + ")");
- i++;
- }
- } catch (SQLException e) {
- plugin.getLogger().info("Skipped performing the database upgrade: " + e.getCause() + ". This might be because another server on your HuskHomes network already carried out the upgrade - in which case you can safely ignore this warning.");
- e.printStackTrace();
- break;
- }
-
- }
-
- // Update the config file version
- plugin.getLogger().info("Logout position and ignoring request database upgrade complete! (v7)");
- plugin.getConfig().set("config_file_version", 7);
- plugin.saveConfig();
- }
-
- if (plugin.getConfig().getInt("config_file_version", 1) <= 7) {
- plugin.getLogger().info("Database upgrade needed: Adding creation timestamps to homes and warps...");
- HuskHomes.backupDatabase(); // Backup database before upgrades are carried out!
-
- try (Connection connection = HuskHomes.getConnection()) {
- try (PreparedStatement tableUpdateStatement = connection.prepareStatement(
- "ALTER TABLE " + HuskHomes.getSettings().getHomesDataTable()
- + " ADD `creation_time` timestamp NULL DEFAULT NULL;")) {
- tableUpdateStatement.execute();
- plugin.getLogger().info("Database upgrade in progress... (1/2)");
- }
- } catch (SQLException e) {
- plugin.getLogger().info("Skipped performing the database upgrade: " + e.getCause() + ". This might be because another server on your HuskHomes network already carried out the upgrade - in which case you can safely ignore this warning.");
- e.printStackTrace();
- }
-
- try (Connection connection = HuskHomes.getConnection()) {
- try (PreparedStatement tableUpdateStatement = connection.prepareStatement(
- "ALTER TABLE " + HuskHomes.getSettings().getWarpsDataTable()
- + " ADD `creation_time` timestamp NULL DEFAULT NULL;")) {
- tableUpdateStatement.execute();
- plugin.getLogger().info("Database upgrade in progress... (2/2)");
- }
- } catch (SQLException e) {
- plugin.getLogger().info("Skipped performing the database upgrade: " + e.getCause() + ". This might be because another server on your HuskHomes network already carried out the upgrade - in which case you can safely ignore this warning.");
- e.printStackTrace();
- }
- plugin.getLogger().info("Creation timestamp upgrade complete! (v8)");
-
- // Update the config file version
- plugin.getLogger().info("All database upgrades have been completed!");
- plugin.getConfig().set("config_file_version", 8);
- plugin.saveConfig();
- }
- }
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/teleport/SettingHandler.java b/src/main/java/me/william278/huskhomes2/teleport/SettingHandler.java
deleted file mode 100644
index ddb83879..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/SettingHandler.java
+++ /dev/null
@@ -1,480 +0,0 @@
-package me.william278.huskhomes2.teleport;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.util.MessageManager;
-import me.william278.huskhomes2.api.events.PlayerDeleteHomeEvent;
-import me.william278.huskhomes2.api.events.PlayerDeleteWarpEvent;
-import me.william278.huskhomes2.api.events.PlayerSetHomeEvent;
-import me.william278.huskhomes2.api.events.PlayerSetWarpEvent;
-import me.william278.huskhomes2.commands.HomeCommand;
-import me.william278.huskhomes2.commands.PublicHomeCommand;
-import me.william278.huskhomes2.commands.WarpCommand;
-import me.william278.huskhomes2.data.DataManager;
-import me.william278.huskhomes2.integrations.VaultIntegration;
-import me.william278.huskhomes2.teleport.points.Home;
-import me.william278.huskhomes2.teleport.points.TeleportationPoint;
-import me.william278.huskhomes2.teleport.points.Warp;
-import me.william278.huskhomes2.util.RegexUtil;
-import org.bukkit.Bukkit;
-import org.bukkit.Location;
-import org.bukkit.configuration.file.FileConfiguration;
-import org.bukkit.entity.Player;
-
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.util.logging.Level;
-
-// This class handles setting homes, warps and the spawn location.
-public class SettingHandler {
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
-
- // Set a home at the specified position
- public static void setHome(Location location, Player player, String name) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- SetHomeConditions setHomeConditions = new SetHomeConditions(player, name, connection);
- if (setHomeConditions.areConditionsMet()) {
- Home home = new Home(location, HuskHomes.getSettings().getServerID(), player, name, false);
- Bukkit.getScheduler().runTask(plugin, () -> {
- PlayerSetHomeEvent event = new PlayerSetHomeEvent(player, home);
- Bukkit.getPluginManager().callEvent(event);
- if (event.isCancelled()) {
- return;
- }
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection1 = HuskHomes.getConnection()) {
- DataManager.addHome(home, player, connection1);
- MessageManager.sendMessage(player, "set_home_success", name);
- HomeCommand.Tab.updatePlayerHomeCache(player);
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- });
- } else {
- switch (setHomeConditions.getConditionsNotMetReason()) {
- case "error_set_home_maximum_homes" -> MessageManager.sendMessage(player, "error_set_home_maximum_homes", Integer.toString(Home.getSetHomeLimit(player)));
- case "error_insufficient_funds" -> MessageManager.sendMessage(player, "error_insufficient_funds", VaultIntegration.format(HuskHomes.getSettings().getSetHomeCost()));
- default -> MessageManager.sendMessage(player, setHomeConditions.getConditionsNotMetReason());
- }
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
-
- public static void updateCrossServerSpawnWarp(Player p) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- if (SettingHandler.setCrossServerSpawnWarp(p.getLocation(), p, connection)) {
- SettingHandler.setSpawnLocation(p.getLocation());
- p.getWorld().setSpawnLocation(p.getLocation());
- MessageManager.sendMessage(p, "set_spawn_success");
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
-
- // Set a new server spawn (override existing one if exists)
- public static boolean setCrossServerSpawnWarp(Location location, Player player, Connection connection) throws SQLException {
- String spawnWarpName = HuskHomes.getSettings().getSpawnWarpName();
-
- // Delete the old spawn warp
- if (DataManager.warpExists(spawnWarpName, connection)) {
- DataManager.deleteWarp(spawnWarpName, connection);
- if (HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showWarpsOnMap()) {
- HuskHomes.getMap().removeWarpMarker(spawnWarpName);
- }
- }
-
- // Set a new warp for the spawn position
- SetWarpConditions setWarpConditions = new SetWarpConditions(spawnWarpName, connection);
- if (setWarpConditions.areConditionsMet()) {
- Warp spawnWarp = new Warp(location, HuskHomes.getSettings().getServerID(), spawnWarpName);
- spawnWarp.setDescription(MessageManager.getRawMessage("spawn_warp_default_description"));
- DataManager.addWarp(spawnWarp, connection);
- if (HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showWarpsOnMap()) {
- HuskHomes.getMap().addWarpMarker(spawnWarp);
- }
- WarpCommand.Tab.updateWarpsTabCache();
- } else {
- MessageManager.sendMessage(player, setWarpConditions.getConditionsNotMetReason());
- return false;
- }
- return true;
- }
-
- // Set a warp at the specified position
- public static void setWarp(Location location, Player player, String name) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- SetWarpConditions setWarpConditions = new SetWarpConditions(name, connection);
- if (setWarpConditions.areConditionsMet()) {
- Warp warp = new Warp(location, HuskHomes.getSettings().getServerID(), name);
- Bukkit.getScheduler().runTask(plugin, () -> {
- PlayerSetWarpEvent event = new PlayerSetWarpEvent(player, warp);
- Bukkit.getPluginManager().callEvent(event);
- if (event.isCancelled()) {
- return;
- }
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection1 = HuskHomes.getConnection()) {
- DataManager.addWarp(warp, connection1);
- MessageManager.sendMessage(player, "set_warp_success", name);
- if (HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showWarpsOnMap()) {
- HuskHomes.getMap().addWarpMarker(warp);
- }
- WarpCommand.Tab.updateWarpsTabCache();
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- });
- } else {
- MessageManager.sendMessage(player, setWarpConditions.getConditionsNotMetReason());
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
-
- // Delete all of a player's homes
- public static void deleteAllHomes(Player player) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- int homesDeleted = 0;
- for (Home home : DataManager.getPlayerHomes(player.getName(), connection)) {
- if (home != null) {
- Bukkit.getScheduler().runTask(plugin, () -> {
- PlayerDeleteHomeEvent event = new PlayerDeleteHomeEvent(player, home);
- Bukkit.getPluginManager().callEvent(event);
- if (!event.isCancelled()) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection1 = HuskHomes.getConnection()) {
- deleteHomeData(player, home, connection1);
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
- });
- }
- homesDeleted++;
- }
- if (homesDeleted == 0) {
- MessageManager.sendMessage(player, "error_no_homes_set");
- return;
- }
-
- HomeCommand.Tab.updatePlayerHomeCache(player);
- MessageManager.sendMessage(player, "delete_all_homes_success", Integer.toString(homesDeleted));
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
-
- public static void deleteHome(Player player, String homeName) {
- deleteHome(player, player.getName(), homeName);
- }
-
- // Delete a home
- public static void deleteHome(Player player, String ownerName, String homeName) {
- if (!ownerName.equalsIgnoreCase(player.getName())) {
- if (!player.hasPermission("huskhomes.delhome.other")) {
- MessageManager.sendMessage(player, "error_no_permission");
- return;
- }
- }
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- if (DataManager.homeExists(ownerName, homeName, connection)) {
- Home home = DataManager.getHome(ownerName, homeName, connection);
- if (home != null) {
- Bukkit.getScheduler().runTask(plugin, () -> {
- PlayerDeleteHomeEvent event = new PlayerDeleteHomeEvent(player, home);
- Bukkit.getPluginManager().callEvent(event);
- if (!event.isCancelled()) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection1 = HuskHomes.getConnection()) {
- deleteHomeData(player, home, connection1);
- if (home.getOwnerUsername().equalsIgnoreCase(player.getName())) {
- HomeCommand.Tab.updatePlayerHomeCache(player);
- MessageManager.sendMessage(player, "home_deleted", homeName);
- } else {
- Player homeOwner = Bukkit.getPlayerExact(ownerName);
- if (homeOwner != null) {
- HomeCommand.Tab.updatePlayerHomeCache(homeOwner);
- }
- MessageManager.sendMessage(player, "home_deleted_other", ownerName, homeName);
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
- });
- } else {
- if (!ownerName.equalsIgnoreCase(player.getName())) {
- MessageManager.sendMessage(player, "error_home_invalid_other", ownerName, homeName);
- } else {
- MessageManager.sendMessage(player, "error_home_invalid", homeName);
- }
- }
- } else {
- if (homeName.equalsIgnoreCase("all")) {
- if (!player.hasPermission("huskhomes.delhome.all")) {
- MessageManager.sendMessage(player, "error_no_permission");
- return;
- }
- if (DataManager.getPlayerHomes(ownerName, connection).size() == 0) {
- MessageManager.sendMessage(player, "error_no_homes_set");
- return;
- }
- MessageManager.sendMessage(player, "delete_all_homes_confirm");
- return;
- }
- MessageManager.sendMessage(player, "error_home_invalid", homeName);
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
-
- private static void deleteHomeData(Player player, Home home, Connection connection) throws SQLException {
- if (home.isPublic()) {
- // Delete Map marker if needed & if the home is public
- if (HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showPublicHomesOnMap()) {
- HuskHomes.getMap().removePublicHomeMarker(home.getName(), home.getOwnerUsername());
- }
- DataManager.deleteHome(player, home.getOwnerUsername(), home.getName(), connection);
- PublicHomeCommand.updatePublicHomeTabCache();
- } else {
- DataManager.deleteHome(player, home.getOwnerUsername(), home.getName(), connection);
- }
- }
-
- // Delete all server warps
- public static void deleteAllWarps(Player player) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- int warpsDeleted = 0;
- for (Warp warp : DataManager.getWarps(connection)) {
- if (warp != null) {
- String warpName = warp.getName();
- Bukkit.getScheduler().runTask(plugin, () -> {
- PlayerDeleteWarpEvent event = new PlayerDeleteWarpEvent(player, warp);
- Bukkit.getPluginManager().callEvent(event);
- if (!event.isCancelled()) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection1 = HuskHomes.getConnection()) {
- DataManager.deleteWarp(warpName, connection1);
- if (HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showWarpsOnMap()) {
- HuskHomes.getMap().removeWarpMarker(warpName);
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
- });
- WarpCommand.Tab.updateWarpsTabCache();
- }
- warpsDeleted++;
- }
- if (warpsDeleted == 0) {
- MessageManager.sendMessage(player, "error_no_warps_set");
- return;
- }
-
- HomeCommand.Tab.updatePlayerHomeCache(player);
- MessageManager.sendMessage(player, "delete_all_warps_success", Integer.toString(warpsDeleted));
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
-
- // Delete a warp
- public static void deleteWarp(Player player, String warpName) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- if (DataManager.warpExists(warpName, connection)) {
- Warp warp = DataManager.getWarp(warpName, connection);
- Bukkit.getScheduler().runTask(plugin, () -> {
- PlayerDeleteWarpEvent event = new PlayerDeleteWarpEvent(player, warp);
- Bukkit.getPluginManager().callEvent(event);
- if (!event.isCancelled()) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection1 = HuskHomes.getConnection()) {
- DataManager.deleteWarp(warpName, connection1);
- MessageManager.sendMessage(player, "warp_deleted", warpName);
- if (HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showWarpsOnMap()) {
- HuskHomes.getMap().removeWarpMarker(warpName);
- }
- WarpCommand.Tab.updateWarpsTabCache();
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
- });
-
- } else {
- if (warpName.equalsIgnoreCase("all")) {
- if (!player.hasPermission("huskhomes.delwarp.all")) {
- MessageManager.sendMessage(player, "error_no_permission");
- return;
- }
- if (DataManager.getWarps(connection).size() == 0) {
- MessageManager.sendMessage(player, "error_no_warps_set");
- return;
- }
- MessageManager.sendMessage(player, "delete_all_warps_confirm");
- return;
- }
- MessageManager.sendMessage(player, "error_warp_invalid", warpName);
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
- }
- });
- }
-
- // Set spawn location
- public static void setSpawnLocation(Location location) {
- // Don't set the spawn location in an invalid world
- if (location.getWorld() == null) {
- return;
- }
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- // Write the new location to config
- FileConfiguration config = plugin.getConfig();
- config.set("spawn_command.position.world", location.getWorld().getName());
- config.set("spawn_command.position.x", location.getX());
- config.set("spawn_command.position.y", location.getY());
- config.set("spawn_command.position.z", location.getZ());
- config.set("spawn_command.position.yaw", (double) location.getYaw());
- config.set("spawn_command.position.pitch", (double) location.getPitch());
- plugin.saveConfig();
-
- // Update the current spawn location
- TeleportManager.setSpawnLocation(new TeleportationPoint(location, HuskHomes.getSettings().getServerID()));
- });
- }
-
- // Update current spawn location from config
- public static void fetchSpawnLocation() {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> TeleportManager.setSpawnLocation(getSpawnLocation()));
- }
-
- // Get spawn location from config
- private static TeleportationPoint getSpawnLocation() {
- String server = HuskHomes.getSettings().getServerID();
- try {
- FileConfiguration config = plugin.getConfig();
- String worldName = (config.getString("spawn_command.position.world"));
- if (worldName == null || worldName.equals("")) {
- return null;
- }
- double x = (config.getDouble("spawn_command.position.x"));
- double y = (config.getDouble("spawn_command.position.y"));
- double z = (config.getDouble("spawn_command.position.z"));
- float yaw = (float) (config.getDouble("spawn_command.position.yaw"));
- float pitch = (float) (config.getDouble("spawn_command.position.pitch"));
- return new TeleportationPoint(worldName, x, y, z, yaw, pitch, server);
- } catch (Exception e) {
- return null;
- }
- }
-
- private static class SetWarpConditions {
-
- private boolean conditionsMet;
- private String conditionsNotMetReason;
-
- public SetWarpConditions(String warpName, Connection connection) throws SQLException {
- conditionsMet = false;
- if (DataManager.warpExists(warpName, connection)) {
- conditionsNotMetReason = "error_set_warp_name_taken";
- return;
- }
- if (warpName.length() > 16) {
- conditionsNotMetReason = "error_set_warp_invalid_length";
- return;
- }
- if (!RegexUtil.NAME_PATTERN.matcher(warpName).matches()) {
- conditionsNotMetReason = "error_set_warp_invalid_characters";
- return;
- }
- conditionsMet = true;
- }
-
- public boolean areConditionsMet() {
- return conditionsMet;
- }
-
- public String getConditionsNotMetReason() {
- return conditionsNotMetReason;
- }
- }
-
- private static class SetHomeConditions {
-
- private boolean conditionsMet;
- private String conditionsNotMetReason;
-
- public SetHomeConditions(Player player, String homeName, Connection connection) throws SQLException {
- conditionsMet = false;
- int currentHomeCount = DataManager.getPlayerHomeCount(player, connection);
- if (currentHomeCount > (Home.getSetHomeLimit(player) - 1)) {
- conditionsNotMetReason = "error_set_home_maximum_homes";
- return;
- }
- if (DataManager.homeExists(player, homeName, connection)) {
- conditionsNotMetReason = "error_set_home_name_taken";
- return;
- }
- if (homeName.length() > 16) {
- conditionsNotMetReason = "error_set_home_invalid_length";
- return;
- }
- if (!RegexUtil.NAME_PATTERN.matcher(homeName).matches()) {
- conditionsNotMetReason = "error_set_home_invalid_characters";
- return;
- }
- if (HuskHomes.getSettings().doEconomy()) {
- double setHomeCost = HuskHomes.getSettings().getSetHomeCost();
- if (setHomeCost > 0) {
- int currentPlayerHomeSlots = DataManager.getPlayerHomeSlots(player, connection);
- if (currentHomeCount > (currentPlayerHomeSlots - 1)) {
- if (!VaultIntegration.takeMoney(player, setHomeCost)) {
- conditionsNotMetReason = "error_insufficient_funds";
- return;
- } else {
- DataManager.incrementPlayerHomeSlots(player, connection);
- MessageManager.sendMessage(player, "set_home_spent_money", VaultIntegration.format(setHomeCost));
- }
- } else if (currentHomeCount == (currentPlayerHomeSlots - 1)) {
- MessageManager.sendMessage(player, "set_home_used_free_slots", Integer.toString(Home.getFreeHomes(player)), VaultIntegration.format(setHomeCost));
- }
- }
- }
- conditionsMet = true;
- }
-
- public boolean areConditionsMet() {
- return conditionsMet;
- }
-
- public String getConditionsNotMetReason() {
- return conditionsNotMetReason;
- }
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/teleport/TeleportManager.java b/src/main/java/me/william278/huskhomes2/teleport/TeleportManager.java
deleted file mode 100644
index b310786d..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/TeleportManager.java
+++ /dev/null
@@ -1,338 +0,0 @@
-package me.william278.huskhomes2.teleport;
-
-import com.google.common.io.ByteArrayDataOutput;
-import com.google.common.io.ByteStreams;
-import io.papermc.lib.PaperLib;
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.api.events.PlayerPreTeleportEvent;
-import me.william278.huskhomes2.data.DataManager;
-import me.william278.huskhomes2.data.message.CrossServerMessageHandler;
-import me.william278.huskhomes2.data.message.Message;
-import me.william278.huskhomes2.integrations.VaultIntegration;
-import me.william278.huskhomes2.teleport.points.RandomPoint;
-import me.william278.huskhomes2.teleport.points.TeleportationPoint;
-import me.william278.huskhomes2.util.MessageManager;
-import org.bukkit.Bukkit;
-import org.bukkit.Location;
-import org.bukkit.entity.Player;
-
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.time.Instant;
-import java.util.Optional;
-import java.util.logging.Level;
-
-public class TeleportManager {
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
-
- private static TeleportationPoint spawnLocation;
-
- // Fires the PreTeleportEvent; returns true if the event is cancelled
- private static PlayerPreTeleportEvent getPreTeleportEvent(Player player, TeleportationPoint targetPoint) {
- PlayerPreTeleportEvent preTeleportEvent = new PlayerPreTeleportEvent(player, targetPoint);
- Bukkit.getPluginManager().callEvent(preTeleportEvent);
- return preTeleportEvent;
- }
-
- // Teleport a player to a player by name
- public static void teleportPlayer(Player player, String targetPlayer) {
- try (Connection connection = HuskHomes.getConnection()) {
- DataManager.setPlayerLastPosition(player, new TeleportationPoint(player.getLocation(),
- HuskHomes.getSettings().getServerID()), connection);
- setPlayerDestinationFromTargetPlayer(player, targetPlayer, connection);
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred teleporting a player.", e);
- }
- }
-
- // Teleport a player to a location on the server or proxy server network
- public static void teleportPlayer(Player player, TeleportationPoint targetPoint) {
- final TeleportationPoint currentPosition = new TeleportationPoint(player.getLocation(),
- HuskHomes.getSettings().getServerID());
-
- // Safety checks
- if (Math.abs(targetPoint.getX()) > 30000000 || Math.abs(targetPoint.getZ()) > 30000000 || Math.abs(targetPoint.getY()) > 30000000) {
- MessageManager.sendMessage(player, "error_invalid_coordinates");
- return;
- }
-
- // Execute teleport
- try (Connection connection = HuskHomes.getConnection()) {
- DataManager.setPlayerLastPosition(player, currentPosition, connection);
- DataManager.setPlayerDestinationLocation(player, targetPoint, connection);
- teleportPlayer(player);
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred teleporting a player.", e);
- }
- }
-
- // Move a player to a different server in the bungee network
- @SuppressWarnings("UnstableApiUsage")
- private static void movePlayerServer(Player p, String targetServer) {
- Bukkit.getScheduler().runTask(plugin, () -> {
- ByteArrayDataOutput out = ByteStreams.newDataOutput();
- out.writeUTF("Connect");
- out.writeUTF(targetServer);
- p.sendPluginMessage(plugin, "BungeeCord", out.toByteArray());
- });
- }
-
- public static void teleportPlayer(Player player) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- TeleportationPoint teleportationPoint = null;
- try (Connection connection = HuskHomes.getConnection()) {
- teleportationPoint = DataManager.getPlayerDestination(player, connection);
- } catch (SQLException sqlException) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred fetching a player's destination", sqlException);
- }
- if (teleportationPoint != null) {
- final TeleportationPoint[] targetPoint = {teleportationPoint};
- Bukkit.getScheduler().runTask(plugin, () -> {
- PlayerPreTeleportEvent preTeleportEvent = getPreTeleportEvent(player, targetPoint[0]);
- if (preTeleportEvent.isCancelled()) {
- return;
- }
- targetPoint[0] = preTeleportEvent.getTargetPoint();
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- String server = targetPoint[0].getServer();
- if (!HuskHomes.getSettings().doBungee() || server.equals(HuskHomes.getSettings().getServerID())) {
- DataManager.setPlayerTeleporting(player, false, connection);
- DataManager.deletePlayerDestination(player.getName(), connection);
-
- final Location targetLocation = targetPoint[0].getLocation();
- teleportLocally(player, targetLocation, true);
- } else if (HuskHomes.getSettings().doBungee()) {
- DataManager.setPlayerDestinationLocation(player, targetPoint[0], connection);
- DataManager.setPlayerTeleporting(player, true, connection);
- movePlayerServer(player, server);
- }
- } catch (SQLException sqlException) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred teleporting a player", sqlException);
- } catch (IllegalStateException illegalStateException) {
- MessageManager.sendMessage(player, "error_invalid_on_arrival");
- }
- });
- });
- }
- });
- }
-
- /**
- * Teleport a player locally on the server via PaperLib
- *
- * @param player The {@link Player} to teleport
- * @param targetLocation The target {@link Location}
- * @param notify Whether to notify the player of teleportation completion or failure through sounds and messages
- */
- public static void teleportLocally(Player player, Location targetLocation, boolean notify) {
- Bukkit.getScheduler().runTask(plugin, () -> {
- if (!player.isEmpty()) {
- player.eject(); // Eject passengers before teleporting
- }
- if (!targetLocation.isWorldLoaded()) {
- if (notify) {
- MessageManager.sendMessage(player, "error_invalid_on_arrival");
- }
- return;
- }
- if (HuskHomes.getSettings().doUsePaperLibIfAvailable()) {
- PaperLib.teleportAsync(player, targetLocation).thenAccept(succeeded -> {
- if (!succeeded) {
- player.teleport(targetLocation); // Teleport normally if paperlib fails
- }
- });
- } else {
- player.teleport(targetLocation);
- }
-
- // Send teleportation complete sound
- if (notify) {
- if (HuskHomes.getSettings().getTeleportationCompleteSound() != null) {
- player.playSound(targetLocation, HuskHomes.getSettings().getTeleportationCompleteSound(), 1, 1);
- }
- MessageManager.sendMessage(player, "teleporting_complete");
- }
- });
- }
-
- public static void queueTimedTeleport(Player player, String targetPlayer) {
- if (player.hasPermission("huskhomes.bypass_timer") || HuskHomes.getSettings().getTeleportWarmupTime() <= 0) {
- teleportPlayer(player, targetPlayer);
- return;
- }
-
- new TimedTeleport(player, targetPlayer).begin();
- }
-
- public static void queueTimedTeleport(Player player, TeleportationPoint point) {
- if (player.hasPermission("huskhomes.bypass_timer") || HuskHomes.getSettings().getTeleportWarmupTime() <= 0) {
- teleportPlayer(player, point);
- return;
- }
-
- new TimedTeleport(player, point, TimedTeleport.TargetType.POINT).begin();
- }
-
- public static void teleportToOfflinePlayer(Player player, String targetPlayer, Connection connection) throws SQLException {
- final Integer playerID = DataManager.getPlayerId(targetPlayer, connection);
- if (playerID == null) {
- MessageManager.sendMessage(player, "error_player_not_found", targetPlayer);
- return;
- }
- TeleportationPoint offlinePoint = DataManager.getPlayerOfflinePosition(playerID, connection);
- if (offlinePoint == null) {
- MessageManager.sendMessage(player, "error_no_offline_position", targetPlayer);
- return;
- }
- MessageManager.sendMessage(player, "teleporting_offline_player", targetPlayer);
- teleportPlayer(player, offlinePoint);
- }
-
- public static void queueBackTeleport(Player player, Connection connection) throws SQLException {
- try {
- TeleportationPoint lastPosition = DataManager.getPlayerLastPosition(player, connection);
- if (lastPosition != null) {
- if (HuskHomes.getSettings().doEconomy()) {
- double backCost = HuskHomes.getSettings().getBackCost();
- if (backCost > 0) {
- if (!VaultIntegration.hasMoney(player, backCost)) {
- MessageManager.sendMessage(player, "error_insufficient_funds", VaultIntegration.format(backCost));
- return;
- }
- }
- }
- if (player.hasPermission("huskhomes.bypass_timer") || HuskHomes.getSettings().getTeleportWarmupTime() <= 0) {
- if (HuskHomes.getSettings().doEconomy()) {
- double backCost = HuskHomes.getSettings().getRtpCost();
- if (backCost > 0) {
- VaultIntegration.takeMoney(player, backCost);
- MessageManager.sendMessage(player, "back_spent_money", VaultIntegration.format(backCost));
- }
- }
- teleportPlayer(player, lastPosition);
- return;
- }
-
- new TimedTeleport(player, lastPosition, TimedTeleport.TargetType.BACK).begin();
- } else {
- MessageManager.sendMessage(player, "error_no_last_position");
- }
- } catch (IllegalArgumentException e) {
- MessageManager.sendMessage(player, "error_no_last_position");
- }
-
- }
-
- public static void queueRandomTeleport(Player player, Connection connection) throws SQLException {
- if (!player.hasPermission("huskhomes.rtp.bypass_cooldown")) {
- long currentTime = Instant.now().getEpochSecond();
- long coolDownTime = DataManager.getPlayerRtpCoolDown(player, connection);
- if (currentTime < coolDownTime) {
- long timeRemaining = coolDownTime - currentTime;
- long timeRemainingMinutes = timeRemaining / 60;
- MessageManager.sendMessage(player, "error_rtp_cooldown", Long.toString(timeRemainingMinutes));
- return;
- }
- }
- if (HuskHomes.getSettings().doEconomy()) {
- double rtpCost = HuskHomes.getSettings().getRtpCost();
- if (rtpCost > 0) {
- if (!VaultIntegration.hasMoney(player, rtpCost)) {
- MessageManager.sendMessage(player, "error_insufficient_funds", VaultIntegration.format(rtpCost));
- return;
- }
- }
- }
- if (player.hasPermission("huskhomes.bypass_timer") || HuskHomes.getSettings().getTeleportWarmupTime() <= 0) {
- RandomPoint randomPoint = new RandomPoint(player);
- if (randomPoint.hasFailed()) {
- return;
- }
- if (HuskHomes.getSettings().doEconomy()) {
- double rtpCost = HuskHomes.getSettings().getRtpCost();
- if (rtpCost > 0) {
- VaultIntegration.takeMoney(player, rtpCost);
- MessageManager.sendMessage(player, "rtp_spent_money", VaultIntegration.format(rtpCost));
- }
- }
- teleportPlayer(player, randomPoint);
- DataManager.updateRtpCoolDown(player, connection);
- return;
- }
- new TimedTeleport(player).begin();
- }
-
- public static void teleportAllHere(Player requester) {
- for (String playerName : HuskHomes.getPlayerList().getPlayers()) {
- if (playerName.equals(requester.getName())) {
- continue;
- }
- Player targetPlayer = Bukkit.getPlayerExact(playerName);
- if (targetPlayer != null) {
- teleportPlayer(targetPlayer, requester.getName());
- } else {
- if (HuskHomes.getSettings().doBungee()) {
- teleportHereCrossServer(requester, playerName);
- }
- }
- }
- }
-
- public static void teleportHere(Player requester, String targetPlayerName) throws SQLException {
- Player targetPlayer = Bukkit.getPlayerExact(targetPlayerName);
- if (targetPlayer != null) {
- if (targetPlayer.getUniqueId() != requester.getUniqueId()) {
- teleportPlayer(targetPlayer, requester.getName());
- } else {
- MessageManager.sendMessage(requester, "error_tp_self");
- }
- } else {
- if (HuskHomes.getSettings().doBungee()) {
- teleportHereCrossServer(requester, targetPlayerName);
- return;
- }
- MessageManager.sendMessage(requester, "error_player_not_found", targetPlayerName);
- }
- }
-
- private static void teleportHereCrossServer(Player requester, String targetPlayerName) {
- CrossServerMessageHandler.getMessage(targetPlayerName, Message.MessageType.TELEPORT_TO_ME, requester.getName()).send(requester);
- }
-
- private static void setTeleportationDestinationCrossServer(Player requester, String targetPlayerName) {
- CrossServerMessageHandler.getMessage(targetPlayerName, Message.MessageType.SET_TP_DESTINATION, requester.getName()).send(requester);
- }
-
- public static void setPlayerDestinationFromTargetPlayer(Player requester, String targetPlayerName, Connection connection) throws SQLException {
- Player targetPlayer = Bukkit.getPlayerExact(targetPlayerName);
- if (targetPlayer != null) {
- if (requester.getUniqueId() != targetPlayer.getUniqueId()) {
- DataManager.setPlayerDestinationLocation(requester,
- new TeleportationPoint(targetPlayer.getLocation(), HuskHomes.getSettings().getServerID()), connection);
- teleportPlayer(requester);
- } else {
- MessageManager.sendMessage(requester, "error_tp_self");
- }
- } else {
- if (HuskHomes.getSettings().doBungee()) {
- setTeleportationDestinationCrossServer(requester, targetPlayerName);
- return;
- }
- MessageManager.sendMessage(requester, "error_player_not_found", targetPlayerName);
- }
- }
-
- public static Optional getSpawnLocation() {
- if (spawnLocation == null) {
- return Optional.empty();
- } else {
- return Optional.of(spawnLocation);
- }
- }
-
- public static void setSpawnLocation(TeleportationPoint spawnPoint) {
- spawnLocation = spawnPoint;
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/teleport/TeleportRequest.java b/src/main/java/me/william278/huskhomes2/teleport/TeleportRequest.java
deleted file mode 100644
index 0666ffd9..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/TeleportRequest.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package me.william278.huskhomes2.teleport;
-
-import me.william278.huskhomes2.HuskHomes;
-
-import java.time.Instant;
-
-public class TeleportRequest {
-
- private final String senderName;
- private final long requestExpiryTime;
- private final long requestTime;
- private final RequestType requestType;
-
- public TeleportRequest(String senderName, RequestType requestType) {
- this.senderName = senderName;
- this.requestType = requestType;
- this.requestTime = Instant.now().getEpochSecond();
- requestExpiryTime = requestTime + HuskHomes.getSettings().getTeleportRequestExpiryTime();
- }
-
- public String getSenderName() {
- return senderName;
- }
-
- public RequestType getRequestType() {
- return requestType;
- }
-
- public long getRequestTime() { return requestTime; }
-
- public boolean isExpired() {
- long currentUnixTime = Instant.now().getEpochSecond();
- return currentUnixTime > requestExpiryTime;
- }
-
- public enum RequestType {
- TPA,
- TPA_HERE
- }
-}
\ No newline at end of file
diff --git a/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java b/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java
deleted file mode 100644
index 6561cfc6..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/TeleportRequestHandler.java
+++ /dev/null
@@ -1,246 +0,0 @@
-package me.william278.huskhomes2.teleport;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.util.MessageManager;
-import me.william278.huskhomes2.data.message.CrossServerMessageHandler;
-import me.william278.huskhomes2.data.message.Message;
-import me.william278.huskhomes2.integrations.VanishChecker;
-import org.bukkit.Bukkit;
-import org.bukkit.entity.Player;
-
-import java.util.HashMap;
-
-public class TeleportRequestHandler {
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
-
- // Target player and teleport request(s) to them hashmap
- public static HashMap> teleportRequests = new HashMap<>();
-
- private static void sendTeleportRequestCrossServer(Player requester, String targetPlayerName, TeleportRequest.RequestType requestType) {
- if (requestType == TeleportRequest.RequestType.TPA) {
- CrossServerMessageHandler.getMessage(targetPlayerName, Message.MessageType.TPA_REQUEST, requester.getName()).send(requester);
- } else if (requestType == TeleportRequest.RequestType.TPA_HERE) {
- CrossServerMessageHandler.getMessage(targetPlayerName, Message.MessageType.TPA_HERE_REQUEST, requester.getName()).send(requester);
- }
- }
-
- private static void replyTeleportRequestCrossServer(Player replier, String requesterName, TeleportRequest.RequestType requestType, boolean accepted) {
- if (requestType == TeleportRequest.RequestType.TPA) {
- CrossServerMessageHandler.getMessage(requesterName, Message.MessageType.TPA_REQUEST_REPLY, replier.getName(), Boolean.toString(accepted)).send(replier);
- } else if (requestType == TeleportRequest.RequestType.TPA_HERE) {
- CrossServerMessageHandler.getMessage(requesterName, Message.MessageType.TPA_HERE_REQUEST_REPLY, replier.getName(), Boolean.toString(accepted)).send(replier);
- }
- }
-
- public static void sendTeleportToRequest(Player requester, String targetPlayerName) {
- Player targetPlayer = Bukkit.getPlayerExact(targetPlayerName);
- if (targetPlayer != null) {
- if (targetPlayer.getUniqueId() != requester.getUniqueId()) {
- if (!VanishChecker.isVanished(targetPlayer)) {
- MessageManager.sendMessage(requester, "tpa_request_sent", targetPlayerName);
- if (!HuskHomes.isIgnoringTeleportRequests(targetPlayer.getUniqueId())) {
- if (isDuplicateRequest(targetPlayerName, targetPlayer)) {
- return;
- }
- teleportRequests.get(targetPlayer).put(requester.getName(), new TeleportRequest(requester.getName(),
- TeleportRequest.RequestType.TPA));
- MessageManager.sendMessage(targetPlayer, "tpa_request_ask", requester.getName());
- MessageManager.sendMessage(targetPlayer, "teleport_request_options", requester.getName());
- }
- } else {
- MessageManager.sendMessage(requester, "error_player_not_found", targetPlayerName);
- }
- } else {
- MessageManager.sendMessage(requester, "error_tp_self");
- }
- } else {
- if (HuskHomes.getSettings().doBungee()) {
- sendTeleportRequestCrossServer(requester, targetPlayerName, TeleportRequest.RequestType.TPA);
- MessageManager.sendMessage(requester, "tpa_request_sent", targetPlayerName);
- } else {
- MessageManager.sendMessage(requester, "error_player_not_found", targetPlayerName);
- }
- }
- }
-
- public static void sendTeleportAllHereRequest(Player requester) {
- if (HuskHomes.getPlayerList().getPlayers().size() <= 1) {
- MessageManager.sendMessage(requester, "error_no_other_online_players");
- return;
- }
- for (String playerName : HuskHomes.getPlayerList().getPlayers()) {
- if (playerName.equals(requester.getName())) {
- continue;
- }
- final Player targetPlayer = Bukkit.getPlayerExact(playerName);
- if (targetPlayer != null) {
- sendLocalTpaHereRequest(requester, playerName, targetPlayer);
- } else {
- if (HuskHomes.getSettings().doBungee()) {
- sendTeleportRequestCrossServer(requester, playerName, TeleportRequest.RequestType.TPA_HERE);
- }
- }
- }
- MessageManager.sendMessage(requester, "tpaall_request_sent");
- }
-
- // Send the local tpa here request, provided the user is not ignoring requests
- private static void sendLocalTpaHereRequest(Player requester, String playerName, Player targetPlayer) {
- if (!HuskHomes.isIgnoringTeleportRequests(targetPlayer.getUniqueId())) {
- if (isDuplicateRequest(playerName, targetPlayer)) {
- return;
- }
- teleportRequests.get(targetPlayer).put(requester.getName(), new TeleportRequest(requester.getName(),
- TeleportRequest.RequestType.TPA_HERE));
- MessageManager.sendMessage(targetPlayer, "tpahere_request_ask", requester.getName());
- MessageManager.sendMessage(targetPlayer, "teleport_request_options", requester.getName());
- }
- }
-
- public static void sendTeleportHereRequest(Player requester, String targetPlayerName) {
- Player targetPlayer = Bukkit.getPlayerExact(targetPlayerName);
- if (targetPlayer != null) {
- if (targetPlayer.getUniqueId() != requester.getUniqueId()) {
- sendLocalTpaHereRequest(requester, targetPlayerName, targetPlayer);
- MessageManager.sendMessage(requester, "tpahere_request_sent", targetPlayerName);
- } else {
- MessageManager.sendMessage(requester, "error_tp_self");
- }
- } else {
- if (HuskHomes.getSettings().doBungee()) {
- sendTeleportRequestCrossServer(requester, targetPlayerName, TeleportRequest.RequestType.TPA_HERE);
- MessageManager.sendMessage(requester, "tpahere_request_sent", targetPlayerName);
- } else {
- MessageManager.sendMessage(requester, "error_player_not_found", targetPlayerName);
- }
- }
- }
-
- private static void handleRequestReply(Player p, TeleportRequest teleportRequest, boolean accepted) {
- if (teleportRequest.isExpired()) {
- teleportRequests.get(p).remove(teleportRequest.getSenderName());
- if (teleportRequests.get(p).isEmpty()) {
- teleportRequests.remove(p);
- }
- MessageManager.sendMessage(p, "error_tp_request_expired");
- return;
- }
- String requesterName = teleportRequest.getSenderName();
- TeleportRequest.RequestType requestType = teleportRequest.getRequestType();
- Player requester = Bukkit.getPlayer(requesterName);
-
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- if (requester != null) {
- if (accepted) {
- MessageManager.sendMessage(p, "tpa_you_accepted", requesterName);
- MessageManager.sendMessage(requester, "tpa_has_accepted", p.getName());
-
- if (requestType == TeleportRequest.RequestType.TPA) {
- TeleportManager.queueTimedTeleport(requester, p.getName());
- } else if (requestType == TeleportRequest.RequestType.TPA_HERE) {
- TeleportManager.queueTimedTeleport(p, requesterName);
- }
- } else {
- MessageManager.sendMessage(p, "tpa_you_declined", requesterName);
- MessageManager.sendMessage(requester, "tpa_has_declined", p.getName());
- }
- } else {
- if (HuskHomes.getSettings().doBungee()) {
- if (accepted) {
- MessageManager.sendMessage(p, "tpa_you_accepted", requesterName);
- replyTeleportRequestCrossServer(p, requesterName, requestType, true);
- if (requestType == TeleportRequest.RequestType.TPA_HERE) {
- TeleportManager.queueTimedTeleport(p, requesterName);
- }
- } else {
- replyTeleportRequestCrossServer(p, requesterName, requestType, false);
- MessageManager.sendMessage(p, "tpa_you_declined", requesterName);
- }
- } else {
- MessageManager.sendMessage(p, "error_player_not_found", requesterName);
- }
- }
- teleportRequests.get(p).remove(teleportRequest.getSenderName());
- if (teleportRequests.get(p).isEmpty()) {
- teleportRequests.remove(p);
- }
- });
- }
-
- public static void replyTpRequest(Player p, boolean accepted) {
- if (!teleportRequests.containsKey(p)) {
- MessageManager.sendMessage(p, "error_tpa_no_pending_request");
- return;
- }
- if (teleportRequests.get(p).isEmpty()) {
- MessageManager.sendMessage(p, "error_tpa_no_pending_request");
- return;
- }
- if (HuskHomes.isIgnoringTeleportRequests(p.getUniqueId())) {
- MessageManager.sendMessage(p, "error_ignoring_teleport_requests");
- return;
- }
- HashMap playerRequests = teleportRequests.get(p);
- long firstRequestTime = Long.MAX_VALUE;
- TeleportRequest targetRequest = null;
- for (String playerName : playerRequests.keySet()) {
- TeleportRequest request = playerRequests.get(playerName);
- if (request.getRequestTime() < firstRequestTime) {
- targetRequest = request;
- firstRequestTime = targetRequest.getRequestTime();
- }
- }
- if (targetRequest == null) {
- MessageManager.sendMessage(p, "error_tpa_no_pending_request");
- return;
- }
- handleRequestReply(p, targetRequest, accepted);
- }
-
- public static void replyTpRequest(Player p, String requesterName, boolean accepted) {
- if (!teleportRequests.containsKey(p)) {
- MessageManager.sendMessage(p, "error_tpa_no_pending_request");
- return;
- }
- if (teleportRequests.get(p).isEmpty()) {
- MessageManager.sendMessage(p, "error_tpa_no_pending_request");
- return;
- }
- if (HuskHomes.isIgnoringTeleportRequests(p.getUniqueId())) {
- MessageManager.sendMessage(p, "error_ignoring_teleport_requests");
- return;
- }
- HashMap playerRequests = teleportRequests.get(p);
- TeleportRequest targetRequest = null;
- for (String playerName : playerRequests.keySet()) {
- TeleportRequest request = playerRequests.get(playerName);
- if (request.getSenderName().equalsIgnoreCase(requesterName)) {
- targetRequest = request;
- break;
- }
- }
- if (targetRequest == null) {
- MessageManager.sendMessage(p, "error_invalid_player");
- return;
- }
- handleRequestReply(p, targetRequest, accepted);
- }
-
- // Handle an incoming request; if it's a duplicate, return true, otherwise allow the new request (return false)
- public static boolean isDuplicateRequest(String senderName, Player recipient) {
- if (teleportRequests.containsKey(recipient)) {
- if (teleportRequests.get(recipient).containsKey(senderName)) {
- TeleportRequest request = teleportRequests.get(recipient).get(senderName);
- if (!request.isExpired()) {
- return true;
- } else {
- teleportRequests.get(recipient).remove(senderName);
- }
- }
- } else {
- teleportRequests.put(recipient, new HashMap<>());
- }
- return false;
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/teleport/TimedTeleport.java b/src/main/java/me/william278/huskhomes2/teleport/TimedTeleport.java
deleted file mode 100644
index a3102998..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/TimedTeleport.java
+++ /dev/null
@@ -1,210 +0,0 @@
-package me.william278.huskhomes2.teleport;
-
-import de.themoep.minedown.MineDown;
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.util.MessageManager;
-import me.william278.huskhomes2.data.DataManager;
-import me.william278.huskhomes2.integrations.VaultIntegration;
-import me.william278.huskhomes2.teleport.points.RandomPoint;
-import me.william278.huskhomes2.teleport.points.TeleportationPoint;
-import net.md_5.bungee.api.chat.TextComponent;
-import org.bukkit.Bukkit;
-import org.bukkit.Location;
-import org.bukkit.entity.Player;
-import org.bukkit.scheduler.BukkitRunnable;
-
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.util.logging.Level;
-
-public class TimedTeleport {
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
-
- private final TargetType targetType;
-
- private TeleportationPoint targetPoint;
- private String targetPlayerName;
-
- private final Player player;
- private final Location initialLocation;
- private final double initialHealth;
-
- private final int warmupTime = HuskHomes.getSettings().getTeleportWarmupTime();
-
- public TimedTeleport(Player player, TeleportationPoint targetPoint, TargetType targetType) {
- this.player = player;
- this.initialLocation = player.getLocation();
- this.initialHealth = player.getHealth();
- this.targetType = targetType;
- this.targetPoint = targetPoint;
-
- MessageManager.sendMessage(player, "teleporting_countdown_start", Integer.toString(this.warmupTime));
- MessageManager.sendMessage(player, "teleporting_please_stand_still");
- }
-
- public TimedTeleport(Player player) {
- this.player = player;
- this.initialLocation = player.getLocation();
- this.initialHealth = player.getHealth();
- this.targetType = TargetType.RANDOM;
-
- MessageManager.sendMessage(player, "teleporting_countdown_start", Integer.toString(this.warmupTime));
- MessageManager.sendMessage(player, "teleporting_please_stand_still");
- }
-
- public TimedTeleport(Player player, String targetPlayerName) {
- this.player = player;
- this.initialLocation = player.getLocation();
- this.initialHealth = player.getHealth();
- this.targetType = TargetType.PLAYER;
- this.targetPlayerName = targetPlayerName;
-
- MessageManager.sendMessage(player, "teleporting_countdown_start", Integer.toString(this.warmupTime));
- MessageManager.sendMessage(player, "teleporting_please_stand_still");
- }
-
- public void begin() {
- final int[] i = {HuskHomes.getSettings().getTeleportWarmupTime() + 1};
- new BukkitRunnable() {
- @Override
- public void run() {
- Player executablePlayer = Bukkit.getPlayer(player.getUniqueId());
- if (executablePlayer == null) {
- cancel();
- return;
- }
- if (hasMoved(executablePlayer)) {
- cancel();
- if (HuskHomes.getSettings().getTeleportCancelledSound() != null) {
- executablePlayer.playSound(executablePlayer.getLocation(), HuskHomes.getSettings().getTeleportCancelledSound(), 1, 1);
- }
- MessageManager.sendMessage(player, "teleporting_cancelled_movement");
- sendWarmupMessage(player, "teleporting_action_bar_cancelled");
- return;
- }
- if (hasLostHealth(executablePlayer)) {
- cancel();
- if (HuskHomes.getSettings().getTeleportCancelledSound() != null) {
- executablePlayer.playSound(executablePlayer.getLocation(), HuskHomes.getSettings().getTeleportCancelledSound(), 1, 1);
- }
- MessageManager.sendMessage(player, "teleporting_cancelled_damage");
- sendWarmupMessage(player, "teleporting_action_bar_cancelled");
- return;
- }
- i[0] = i[0] - 1;
- if (i[0] == 0) {
- cancel();
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- try (Connection connection = HuskHomes.getConnection()) {
- // Execute the teleport
- switch (getTargetType()) {
- case POINT -> TeleportManager.teleportPlayer(player, targetPoint);
- case BACK -> {
- if (HuskHomes.getSettings().doEconomy()) {
- double backCost = HuskHomes.getSettings().getBackCost();
- if (backCost > 0) {
- if (!VaultIntegration.takeMoney(player, backCost)) {
- MessageManager.sendMessage(player, "error_insufficient_funds", VaultIntegration.format(backCost));
- break;
- } else {
- MessageManager.sendMessage(player, "back_spent_money", VaultIntegration.format(backCost));
- }
- }
- }
- TeleportManager.teleportPlayer(player, getTargetPoint());
- }
- case PLAYER -> TeleportManager.teleportPlayer(player, getTargetPlayerName());
- case RANDOM -> {
- RandomPoint randomPoint = new RandomPoint(player);
- if (randomPoint.hasFailed()) {
- return;
- }
- if (HuskHomes.getSettings().doEconomy()) {
- double rtpCost = HuskHomes.getSettings().getRtpCost();
- if (rtpCost > 0) {
- if (!VaultIntegration.takeMoney(player, rtpCost)) {
- MessageManager.sendMessage(player, "error_insufficient_funds", VaultIntegration.format(rtpCost));
- break;
- } else {
- MessageManager.sendMessage(player, "rtp_spent_money", VaultIntegration.format(rtpCost));
- }
- }
- }
- TeleportManager.teleportPlayer(player, randomPoint);
- DataManager.updateRtpCoolDown(player, connection);
- }
- }
- } catch (SQLException e) {
- plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred carrying out a timed teleport");
- }
- });
- return;
- }
- sendWarmupMessage(executablePlayer, "teleporting_action_bar_countdown", Integer.toString(i[0]));
- if (HuskHomes.getSettings().getTeleportWarmupSound() != null) {
- executablePlayer.playSound(executablePlayer.getLocation(), HuskHomes.getSettings().getTeleportWarmupSound(), 1, 1);
- }
- }
- }.runTaskTimer(plugin, 0, 20L);
- }
-
- public TargetType getTargetType() {
- return targetType;
- }
-
- public TeleportationPoint getTargetPoint() {
- return targetPoint;
- }
-
- public String getTargetPlayerName() {
- return targetPlayerName;
- }
-
- private static void sendWarmupMessage(Player player, String messageID, String... replacements) {
- switch (HuskHomes.getSettings().getWarmupDisplayStyle()) {
- case ACTION_BAR -> MessageManager.sendActionBar(player, messageID, replacements);
- case TITLE -> player.sendTitle(TextComponent.toLegacyText(new MineDown(MessageManager.getRawMessage(messageID, replacements)).toComponent()), "", 20, 60, 20);
- case SUBTITLE -> player.sendTitle("", TextComponent.toLegacyText(new MineDown(MessageManager.getRawMessage(messageID, replacements)).toComponent()), 20, 60, 20);
- case CHAT -> MessageManager.sendMessage(player, messageID, replacements);
- }
- }
-
- // This converts a negative to a positive double, used in checking if a player has moved
- private static double makePositive(double d) {
- if (d < 0) {
- d = d * -1D;
- }
- return d;
- }
-
- // This returns if the player has lost health during a timed teleport
- public boolean hasLostHealth(Player p) {
- return p.getHealth() < initialHealth;
- }
-
- // This returns if the player has moved during a timed teleport
- public boolean hasMoved(Player p) {
- Location currentLocation = p.getLocation();
- final double movementThreshold = 0.1;
-
- double xDiff = makePositive(initialLocation.getX() - currentLocation.getX());
- double yDiff = makePositive(initialLocation.getY() - currentLocation.getY());
- double zDiff = makePositive(initialLocation.getZ() - currentLocation.getZ());
- double totalDiff = xDiff + yDiff + zDiff;
-
- return totalDiff > movementThreshold;
- }
-
- public Player getPlayer() {
- return player;
- }
-
- public enum TargetType {
- POINT,
- BACK,
- PLAYER,
- RANDOM
- }
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/teleport/points/Home.java b/src/main/java/me/william278/huskhomes2/teleport/points/Home.java
deleted file mode 100644
index 46833012..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/points/Home.java
+++ /dev/null
@@ -1,190 +0,0 @@
-package me.william278.huskhomes2.teleport.points;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.util.MessageManager;
-import org.bukkit.Bukkit;
-import org.bukkit.Location;
-import org.bukkit.entity.Player;
-import org.bukkit.permissions.PermissionAttachmentInfo;
-
-import java.util.UUID;
-import java.util.regex.PatternSyntaxException;
-
-/**
- * An object representing a Player's home in-game
- *
- * @author William
- */
-public class Home extends SetPoint {
-
- private boolean isPublic;
- private UUID ownerUUID;
- private String ownerUsername;
-
- /**
- * An object representing a Player's home in-game
- *
- * @param location The Bukkit {@link Location} of the home
- * @param server The Bungee server ID of the home
- * @param homeOwner The Player who owns the home
- * @param name The name of the home
- * @param isPublic Whether the home is public
- */
- public Home(Location location, String server, Player homeOwner, String name, boolean isPublic) {
- super(location, server, name, MessageManager.getRawMessage("home_default_description", homeOwner.getName()));
- this.ownerUUID = homeOwner.getUniqueId();
- this.ownerUsername = homeOwner.getName();
- this.isPublic = isPublic;
- }
-
- /**
- * An object representing a Player's home in-game
- *
- * @param teleportationPoint The {@link TeleportationPoint} position of the home
- * @param ownerUsername The username of the owner
- * @param ownerUUID The UUID string of the owner
- * @param name The name of the home
- * @param description The description of the home
- * @param isPublic Whether the home is public
- * @deprecated Use other method that accepts UUID instead of UUID-string
- */
- public Home(TeleportationPoint teleportationPoint, String ownerUsername, String ownerUUID, String name, String description, boolean isPublic, long creationTime) throws IllegalArgumentException {
- super(teleportationPoint.worldName, teleportationPoint.x, teleportationPoint.y, teleportationPoint.z, teleportationPoint.yaw, teleportationPoint.pitch, teleportationPoint.server, name, description, creationTime);
- this.ownerUsername = ownerUsername;
- this.ownerUUID = UUID.fromString(ownerUUID);
- this.isPublic = isPublic;
- }
-
- /**
- * An object representing a Player's home in-game
- *
- * @param teleportationPoint The {@link TeleportationPoint} position of the home
- * @param ownerUsername The username of the owner
- * @param ownerUUID The {@link UUID} of the owner
- * @param name The name of the home
- * @param description The description of the home
- * @param isPublic Whether the home is public
- */
- public Home(TeleportationPoint teleportationPoint, String ownerUsername, UUID ownerUUID, String name, String description, boolean isPublic, long creationTime) {
- super(teleportationPoint.worldName, teleportationPoint.x, teleportationPoint.y, teleportationPoint.z, teleportationPoint.yaw, teleportationPoint.pitch, teleportationPoint.server, name, description, creationTime);
- this.ownerUsername = ownerUsername;
- this.ownerUUID = ownerUUID;
- this.isPublic = isPublic;
- }
-
- /**
- * Returns whether the Home is public
- *
- * @return if the Home is public
- */
- public boolean isPublic() {
- return isPublic;
- }
-
- /**
- * Set the privacy of the home
- *
- * @param isPublic should the home be public?
- */
- public void setPublic(boolean isPublic) {
- this.isPublic = isPublic;
- }
-
- /**
- * Returns the UUID of the Home's owner
- *
- * @return the owner's UUID
- */
- public UUID getOwnerUUID() {
- return ownerUUID;
- }
-
- /**
- * Returns the username of the Home's owner
- *
- * @return the owner's username
- */
- public String getOwnerUsername() {
- return ownerUsername;
- }
-
- /**
- * Returns the Player who owns the home
- *
- * @return the Player owner of the home
- */
- public Player getOwner() {
- Player player = Bukkit.getPlayer(ownerUUID);
- if (player != null) {
- return player;
- } else {
- throw new IllegalStateException("The home owner is not online");
- }
- }
-
- /**
- * Set the owner of the home
- *
- * @param player The new owner of the home
- */
- public void setOwner(Player player) {
- this.ownerUUID = player.getUniqueId();
- this.ownerUsername = player.getName();
- }
-
- /*
- * Static methods for fetching player set home limits
- */
-
- // Returns the maximum number of set homes a player can make
- public static int getSetHomeLimit(Player player) {
- int maxSetHomes = getLimitFromPermissions(player, "huskhomes.max_sethomes.");
- if (maxSetHomes != -1) {
- return maxSetHomes;
- }
- return HuskHomes.getSettings().getMaximumHomes();
- }
-
- // Returns the number of set homes a player can set for free
- public static int getFreeHomes(Player player) {
- int freeSetHomes = getLimitFromPermissions(player, "huskhomes.free_sethomes.");
- if (freeSetHomes != -1) {
- return freeSetHomes;
- }
- return HuskHomes.getSettings().getFreeHomeSlots();
- }
-
- // Returns the number of homes a player can make public; unlimited if not set
- public static int getPublicHomeLimit(Player player) {
- int maxPublicHomes = getLimitFromPermissions(player, "huskhomes.max_public_homes.");
- if (maxPublicHomes != -1) {
- return maxPublicHomes;
- }
- return Integer.MAX_VALUE;
- }
-
- // Return the value from the player's permissions
- private static int getLimitFromPermissions(Player player, String permissionPrefix) {
- player.recalculatePermissions();
- int limit = -1;
- for (PermissionAttachmentInfo permissionAI : player.getEffectivePermissions()) {
- String permission = permissionAI.getPermission();
- if (permission.contains(permissionPrefix)) {
- try {
- int value = Integer.parseInt(permission.split("\\.")[2]);
- if (HuskHomes.getSettings().doHomeLimitPermissionStacking()) {
- if (limit == -1) {
- limit++;
- }
- limit += value;
- } else {
- if (value > limit) {
- limit = value;
- }
- }
- } catch (NumberFormatException | PatternSyntaxException ignored) {}
- }
- }
- return limit;
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/teleport/points/RandomPoint.java b/src/main/java/me/william278/huskhomes2/teleport/points/RandomPoint.java
deleted file mode 100644
index 9d285840..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/points/RandomPoint.java
+++ /dev/null
@@ -1,124 +0,0 @@
-package me.william278.huskhomes2.teleport.points;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.util.MessageManager;
-import org.bukkit.Location;
-import org.bukkit.Material;
-import org.bukkit.World;
-import org.bukkit.block.Block;
-import org.bukkit.entity.Player;
-
-import java.util.Collections;
-import java.util.EnumSet;
-import java.util.Random;
-import java.util.Set;
-import java.util.concurrent.ThreadLocalRandom;
-
-public class RandomPoint extends TeleportationPoint {
-
- // List containing all unsafe blocks
- private static final Set UNSAFE_BLOCKS = Collections.unmodifiableSet(EnumSet.of(
- Material.LAVA, Material.FIRE, Material.MAGMA_BLOCK, Material.CACTUS, Material.WATER, Material.OBSIDIAN,
- Material.JUNGLE_LEAVES, Material.SPRUCE_LEAVES, Material.OAK_LEAVES,
- Material.BIRCH_LEAVES, Material.ACACIA_LEAVES, Material.DARK_OAK_LEAVES
- ));
-
- // Maximum number of attempts to find a random location
- private static final int MAX_RANDOM_ATTEMPTS = 8;
- private static boolean hasFailed;
-
- public RandomPoint(Player player) {
- super(player.getLocation(), HuskHomes.getSettings().getServerID());
- hasFailed = false;
- Location randomLocation = getRandomLocation(player.getWorld());
- if (randomLocation != null) {
- setLocation(randomLocation, HuskHomes.getSettings().getServerID());
- } else {
- hasFailed = true;
- MessageManager.sendMessage(player, "error_rtp_randomization_timeout");
- }
- }
-
- private Location randomLocation(World world) {
- // Generate a random location
- Random random = ThreadLocalRandom.current();
-
- int x;
- int y = 64;
- int z;
- double blockCenterX = 0.5;
- double blockCenterZ = 0.5;
-
- // The furthest distance at which a player can be teleported to
- int rtpRange = Math.min(
- HuskHomes.getSettings().getRtpRange(),
- (int) world.getWorldBorder().getSize() - 1
- );
-
- // Calculate random X and Z coords
- x = random.nextInt(rtpRange);
- z = random.nextInt(rtpRange);
-
- // Determine if the plugin should teleport to positive or negative Z
- if (random.nextBoolean()) {
- x *= -1;
- blockCenterX *= -1;
- }
- if (random.nextBoolean()) {
- z *= -1;
- blockCenterZ *= -1;
- }
-
- // Put together random location, get the highest block plus one to determine Y
- Location randomLocation = new Location(world, (x + blockCenterX), y, (z + blockCenterZ));
- y = world.getHighestBlockYAt(randomLocation) + 1;
- randomLocation.setY(y);
-
- return randomLocation;
- }
-
- // Checks to see if the location is safe to teleport to
- private boolean isLocationSafe(Location location) {
- int x = location.getBlockX();
- int y = location.getBlockY()-1;
- int z = location.getBlockZ();
-
- World world = location.getWorld();
-
- // Failsafe check in case the world is null
- if (world != null) {
- // Ensure we are inside of the world border.
- if (!world.getWorldBorder().isInside(location)) {
- return false;
- }
-
- // Get instances of the blocks around where the player would teleport
- Block block = world.getBlockAt(x, y, z);
- Block below = world.getBlockAt(x, y - 1, z);
- Block above = world.getBlockAt(x, y + 1, z);
-
- // Check to see if those blocks are safe to teleport to
- if (!UNSAFE_BLOCKS.contains(block.getType()) && block.getType().isSolid()) {
- if (!UNSAFE_BLOCKS.contains(above.getType())) {
- return !UNSAFE_BLOCKS.contains(below.getType());
- }
- }
- }
- return false;
- }
-
- private Location getRandomLocation(World world) {
- for (int i = 0; i < MAX_RANDOM_ATTEMPTS; i++) {
- Location randomLocation = randomLocation(world);
- if (isLocationSafe(randomLocation)) {
- return randomLocation;
- }
- }
-
- return null;
- }
-
- public boolean hasFailed() {
- return hasFailed;
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/teleport/points/SetPoint.java b/src/main/java/me/william278/huskhomes2/teleport/points/SetPoint.java
deleted file mode 100644
index c4238db9..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/points/SetPoint.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package me.william278.huskhomes2.teleport.points;
-
-import org.bukkit.Location;
-import java.time.Instant;
-import java.time.ZoneId;
-import java.time.format.DateTimeFormatter;
-import java.time.format.FormatStyle;
-import java.util.Locale;
-
-public class SetPoint extends TeleportationPoint {
-
- private String name;
- private String description;
- private final long creationTime;
-
- public SetPoint(String worldName, double x, double y, double z, float yaw, float pitch, String server, String name, String description, long creationTime) {
- super(worldName, x, y, z, yaw, pitch, server);
- this.name = name;
- this.description = description;
- this.creationTime = creationTime;
- }
-
- public SetPoint(Location location, String serverName, String name, String description) {
- super(location, serverName);
- this.name = name;
- this.description = description;
- this.creationTime = Instant.now().getEpochSecond();
- }
-
- /**
- * Returns the name of the point
- * @return the point name
- */
- public String getName() {
- return name;
- }
-
- /**
- * Returns the description of the point
- * @return the point description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Set the name of the point
- * @param name the new point name
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * Set the description of the point
- * @param description the new point description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Get the creation time epoch seconds of the point
- */
- public long getCreationTime() {
- return creationTime;
- }
-
- /**
- * Return a formatted string displaying the time this point was created
- * @return The formatted creation time string
- */
- public String getFormattedCreationTime() {
- if (creationTime == 0) {
- return "N/A";
- }
- return DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.SHORT)
- .withLocale(Locale.getDefault())
- .withZone(ZoneId.systemDefault())
- .format(Instant.ofEpochSecond(creationTime));
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/teleport/points/TeleportationPoint.java b/src/main/java/me/william278/huskhomes2/teleport/points/TeleportationPoint.java
deleted file mode 100644
index 1297793e..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/points/TeleportationPoint.java
+++ /dev/null
@@ -1,163 +0,0 @@
-package me.william278.huskhomes2.teleport.points;
-
-import me.william278.huskhomes2.HuskHomes;
-import org.bukkit.Bukkit;
-import org.bukkit.Location;
-import org.bukkit.World;
-
-/**
- * HuskHomes' position representation object; represents an in-game location on a server
- */
-public class TeleportationPoint {
-
- protected String server;
- protected String worldName;
- protected double x;
- protected double y;
- protected double z;
- protected float yaw;
- protected float pitch;
-
- /**
- * Update the location of a TeleportationPoint
- *
- * @param location a new Bukkit location
- * @param server a new Bungee server ID
- * @throws IllegalStateException if the location supplied has an unloaded world
- */
- public void setLocation(Location location, String server) throws IllegalStateException {
- if (!location.isWorldLoaded()) {
- throw new IllegalStateException("The location provided has a world not loaded");
- }
- assert location.getWorld() != null;
-
- worldName = location.getWorld().getName();
- x = location.getX();
- y = location.getY();
- z = location.getZ();
- yaw = location.getYaw();
- pitch = location.getPitch();
- this.server = server;
- }
-
- /**
- * HuskHomes' position representation object; represents an in-game location on a server
- *
- * @param location The Bukkit location
- * @param server The Bungee server ID which the location is on
- */
- public TeleportationPoint(Location location, String server) {
- if (!location.isWorldLoaded()) {
- throw new IllegalStateException("The location provided has a world not loaded");
- }
- setLocation(location, server);
- }
-
- /**
- * HuskHomes' position representation object; represents an in-game location on a server
- *
- * @param worldName The name of the location's world
- * @param x The location's x-coordinate
- * @param y The location's y-coordinate
- * @param z The location's z-coordinate
- * @param yaw The location's yaw angle
- * @param pitch The location's pitch angle
- * @param server The Bungee server ID which the location is on
- */
- public TeleportationPoint(String worldName, double x, double y, double z, float yaw, float pitch, String server) {
- this.server = server;
- this.worldName = worldName;
- this.x = x;
- this.y = y;
- this.z = z;
- this.yaw = yaw;
- this.pitch = pitch;
- }
-
- /**
- * Get the Bukkit {@link Location} from a TeleportationPoint
- *
- * @return the Bukkit location on the server from a TeleportationPoint
- * @throws IllegalStateException if the location is not valid on the server
- */
- public Location getLocation() {
- World world = Bukkit.getWorld(worldName);
- if (world == null) {
- throw new IllegalStateException(worldName + " is not loaded on this server; failed to fetch location");
- }
- return new Location(world, x, y, z, yaw, pitch);
- }
-
- /**
- * Get the name of the world from a TeleportationPoint
- *
- * @return the name of the world the position is on from a TeleportationPoint
- */
- public String getWorldName() {
- return worldName;
- }
-
- /**
- * Get the Bungee server ID from a TeleportationPoint
- *
- * @return the TeleportationPoint's Bungee server ID
- */
- public String getServer() {
- return server;
- }
-
- /**
- * Get the x-coordinate of a TeleportationPoint
- *
- * @return the x-coordinate
- */
- public double getX() {
- return x;
- }
-
- /**
- * Get the y-coordinate of a TeleportationPoint
- *
- * @return the y-coordinate
- */
- public double getY() {
- return y;
- }
-
- /**
- * Get the z-coordinate of a TeleportationPoint
- *
- * @return the z-coordinate
- */
- public double getZ() {
- return z;
- }
-
- /**
- * Get the yaw angle of a TeleportationPoint
- *
- * @return the yaw angle
- */
- public float getYaw() {
- return yaw;
- }
-
- /**
- * Get the pitch angle of a TeleportationPoint
- *
- * @return the pitch angle
- */
- public float getPitch() {
- return pitch;
- }
-
- /**
- * Returns the TeleportationPoint as a formatted string
- *
- * @return the TeleportationPoint
- */
- @Override
- public String toString() {
- return x + ", " + y + ", " + z + " (" + worldName + (HuskHomes.getSettings().doBungee() ? "/" + server : "") + ")";
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java b/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java
deleted file mode 100644
index 7609b544..00000000
--- a/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package me.william278.huskhomes2.teleport.points;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.util.MessageManager;
-import org.apache.commons.lang.StringUtils;
-import org.bukkit.Location;
-import org.bukkit.entity.Player;
-import org.bukkit.permissions.PermissionAttachmentInfo;
-
-/**
- * An object representing an in-game warp
- * @author William
- */
-public class Warp extends SetPoint {
-
- /**
- * An object representing an in-game warp
- * @param location the Bukkit location of the Warp
- * @param server The Bungee server ID of the Warp
- * @param name The name of the Warp
- */
- public Warp(Location location, String server, String name) {
- super(location, server, name, MessageManager.getRawMessage("warp_default_description"));
- }
-
- /**
- * An object representing an in-game warp
- * @param teleportationPoint The position of the Warp
- * @param name The name of the Warp
- * @param description The description of the Warp
- */
- public Warp(TeleportationPoint teleportationPoint, String name, String description, long creationTime) {
- super(teleportationPoint.worldName, teleportationPoint.x, teleportationPoint.y, teleportationPoint.z, teleportationPoint.yaw, teleportationPoint.pitch, teleportationPoint.server, name, description, creationTime);
- }
-
- /**
- * Whether the player can use the warp
- * @param player The player
- * @return boolean; whether they can use the warp
- */
- public boolean canUse(Player player) {
- return getWarpCanUse(player, getName());
- }
-
- // Returns if the player has permission to access the warp
- public static boolean getWarpCanUse(Player p, String warpName) {
- if (!HuskHomes.getSettings().doPermissionRestrictedWarps()) {
- return true;
- }
- p.recalculatePermissions();
- String permissionFormat = HuskHomes.getSettings().getWarpRestrictionPermissionFormat();
- if (p.hasPermission("huskhomes.warp.*") || p.hasPermission(permissionFormat + "*")) { return true; } // Always return true if they have the wildcard
- for (PermissionAttachmentInfo permissionAI : p.getEffectivePermissions()) {
- String permission = permissionAI.getPermission();
- if (permission.contains(permissionFormat)) {
- try {
- if (permission.split("\\.")[StringUtils.countMatches(permissionFormat, ".")].equalsIgnoreCase(warpName)) {
- return permissionAI.getValue();
- }
- } catch (Exception ignored) {}
- }
- }
- return false;
- }
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/util/ChatList.java b/src/main/java/me/william278/huskhomes2/util/ChatList.java
deleted file mode 100644
index 439f5fd3..00000000
--- a/src/main/java/me/william278/huskhomes2/util/ChatList.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package me.william278.huskhomes2.util;
-
-import de.themoep.minedown.MineDown;
-import net.md_5.bungee.api.chat.BaseComponent;
-
-import java.util.ArrayList;
-
-public class ChatList {
-
- private final ArrayList items;
- private final String pageChangeCommand;
- private final int itemsPerPage;
- private final int maxPage;
- private final String itemSeparator;
- private final boolean spacePageOptions;
-
- public ChatList(ArrayList items, int itemsPerPage, String pageChangeCommand, String itemSeparator, boolean spacePageOptions) {
- this.pageChangeCommand = pageChangeCommand;
- this.items = new ArrayList<>();
- this.itemsPerPage = itemsPerPage;
- this.items.addAll(items);
- this.maxPage = (int) Math.ceil(((double) items.size()) / itemsPerPage);
- this.itemSeparator = itemSeparator;
- this.spacePageOptions = spacePageOptions;
- }
-
- public boolean doesNotContainPage(int pageNo) {
- return pageNo > items.size();
- }
-
- public BaseComponent[] getPage(int pageNo) {
- StringBuilder builder = new StringBuilder();
- int indexStart = ((pageNo - 1) * itemsPerPage) + 1;
- int indexEnd = (indexStart - 1) + itemsPerPage;
-
- for (int i = indexStart - 1; (i < indexEnd) && (i <= (items.size() - 1)); i++) {
- String item = items.get(i);
- builder.append(item);
- if ((i < (indexEnd - 1)) && (i < (items.size() - 1))) {
- builder.append(itemSeparator);
- }
- }
-
- // Send a message if there's no items on the page
- if (builder.toString().equals("")) {
- builder.append(MessageManager.getRawMessage("page_no_items"));
- }
- builder.append("\n");
- if (spacePageOptions) {
- builder.append("\n");
- }
-
- if (pageNo == 1) {
- if (pageNo == maxPage) {
- builder.append(MessageManager.getRawMessage("page_options_min_max",
- Integer.toString(pageNo), Integer.toString(maxPage)));
- } else {
- builder.append(MessageManager.getRawMessage("page_options_min",
- Integer.toString(pageNo), Integer.toString(maxPage), pageChangeCommand + " " + (pageNo + 1)));
- }
- } else if (pageNo == maxPage) {
- builder.append(MessageManager.getRawMessage("page_options_max",
- pageChangeCommand + " " + (pageNo - 1), Integer.toString(pageNo), Integer.toString(maxPage)));
- } else {
- builder.append(MessageManager.getRawMessage("page_options",
- pageChangeCommand + " " + (pageNo - 1), Integer.toString(pageNo),
- Integer.toString(maxPage), pageChangeCommand + " " + (pageNo + 1)));
- }
- return new MineDown(builder.toString()).toComponent();
- }
-}
diff --git a/src/main/java/me/william278/huskhomes2/util/EditingHandler.java b/src/main/java/me/william278/huskhomes2/util/EditingHandler.java
deleted file mode 100644
index 5e1ef535..00000000
--- a/src/main/java/me/william278/huskhomes2/util/EditingHandler.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package me.william278.huskhomes2.util;
-
-import de.themoep.minedown.MineDown;
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.teleport.points.Home;
-import me.william278.huskhomes2.teleport.points.SetPoint;
-import me.william278.huskhomes2.teleport.points.Warp;
-import org.bukkit.entity.Player;
-
-public class EditingHandler {
-
- public static void showEditHomeOptions(Player p, Home home) {
- if (home.getOwnerUsername().equalsIgnoreCase(p.getName())) {
- MessageManager.sendMessage(p, "edit_home_title", home.getName());
- } else {
- MessageManager.sendMessage(p, "edit_home_title_other", home.getOwnerUsername(), home.getName());
- }
- showPointDetails(p, home);
- if (!home.isPublic()) {
- if (home.getOwnerUsername().equalsIgnoreCase(p.getName())) {
- MessageManager.sendMessage(p, "edit_home_privacy_private");
- } else {
- MessageManager.sendMessage(p, "edit_home_privacy_private_other", home.getOwnerUsername());
- }
- } else {
- MessageManager.sendMessage(p, "edit_home_privacy_public");
- }
-
- if (p.hasPermission("huskhomes.edithome.public")) {
- if (home.isPublic()) {
- MessageManager.sendMessage(p, "edit_home_options_make_private", home.getOwnerUsername(), home.getName());
- } else {
- MessageManager.sendMessage(p, "edit_home_options_make_public", home.getOwnerUsername(), home.getName());
- }
- } else {
- MessageManager.sendMessage(p, "edit_home_options", home.getOwnerUsername(), home.getName());
- }
- }
-
- public static void showEditWarpOptions(Player p, Warp warp) {
- MessageManager.sendMessage(p, "edit_warp_title", warp.getName());
- showPointDetails(p, warp);
-
- MessageManager.sendMessage(p, "edit_warp_options", warp.getName());
- }
-
- private static void showPointDetails(Player p, SetPoint point) {
- MessageManager.sendMessage(p, "edit_description", MineDown.escape(point.getDescription()
- .replace("]", "\\]")
- .replace("[", "\\[")
- .replace("(", "\\(")
- .replace(")", "\\)")));
- MessageManager.sendMessage(p, "edit_timestamp", point.getFormattedCreationTime());
- MessageManager.sendMessage(p, "edit_location",
- Integer.toString((int) point.getX()),
- Integer.toString((int) point.getY()),
- Integer.toString((int) point.getZ()));
- MessageManager.sendMessage(p, "edit_world", point.getWorldName());
- if (HuskHomes.getSettings().doBungee()) {
- MessageManager.sendMessage(p, "edit_server", point.getServer());
- }
- }
-
-}
\ No newline at end of file
diff --git a/src/main/java/me/william278/huskhomes2/util/MessageManager.java b/src/main/java/me/william278/huskhomes2/util/MessageManager.java
deleted file mode 100644
index 9bec1360..00000000
--- a/src/main/java/me/william278/huskhomes2/util/MessageManager.java
+++ /dev/null
@@ -1,143 +0,0 @@
-package me.william278.huskhomes2.util;
-
-import de.themoep.minedown.MineDown;
-import me.william278.huskhomes2.HuskHomes;
-import net.md_5.bungee.api.ChatMessageType;
-import org.apache.commons.lang.StringEscapeUtils;
-import org.apache.commons.lang.StringUtils;
-import org.bukkit.Bukkit;
-import org.bukkit.configuration.file.FileConfiguration;
-import org.bukkit.configuration.file.YamlConfiguration;
-import org.bukkit.entity.Player;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.nio.charset.StandardCharsets;
-import java.util.HashMap;
-import java.util.Map;
-
-import static org.bukkit.configuration.file.YamlConfiguration.loadConfiguration;
-
-public class MessageManager {
-
- private static final Map messages = new HashMap<>();
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
-
- // Create a new file, at the pointer specified
- private static void createFile(File f) {
- try {
- if (!f.createNewFile()) {
- Bukkit.getLogger().severe("Failed to create messages.yml file!");
- }
- } catch (IOException e) {
- Bukkit.getLogger().severe("An error occurred while creating the messages.yml file!");
- e.printStackTrace();
- }
- }
-
- // Save the config file specified to the file at the pointer specified
- private static void saveFile(FileConfiguration config, File f) {
- try {
- config.save(f);
- } catch (IOException e) {
- Bukkit.getLogger().severe("An error occurred while saving the messages.yml file!");
- }
- }
-
- // (Re-)Load the messages file with the correct language
- public static void loadMessages(String language) {
- File f = new File(plugin.getDataFolder() + File.separator + "messages_" + language + ".yml");
-
- if (!f.exists()) {
- createFile(f);
- }
- FileConfiguration config = loadConfiguration(f);
- config.options().header(
- """
- ------------------------------\s
- | HuskHomes Messages |
- | Developed by William278 |
- ------------------------------\s
- If you'd like to use a different language, you can change it in the config.yml\s
- Change the appearance/text of messages in the plugin using this config.\s
- This config makes use of MineDown formatting, with extensive support for custom colors & formats.\s
- For formatting help, see: https://github.com/Phoenix616/MineDown or check the HuskHomes Wiki.""");
- InputStream defaultMessageFile = plugin.getResource("languages/" + language + ".yml");
- if (defaultMessageFile != null) {
- YamlConfiguration yamlConfiguration = YamlConfiguration.loadConfiguration(new InputStreamReader(defaultMessageFile, StandardCharsets.UTF_8));
- config.setDefaults(yamlConfiguration);
- config.options().copyHeader(true).copyDefaults(true);
- }
- saveFile(config, f);
- messages.clear();
- for (String message : config.getKeys(false)) {
- messages.put(message, StringEscapeUtils.unescapeJava(config.getString(message)));
- }
- }
-
- // Send a message with multiple placeholders
- public static void sendMessage(Player p, String messageID, String... placeholderReplacements) {
- sendMessage(p, ChatMessageType.CHAT, messageID, placeholderReplacements);
- }
-
- // Send a message with multiple placeholders
- public static void sendActionBar(Player p, String messageID, String... placeholderReplacements) {
- sendMessage(p, ChatMessageType.ACTION_BAR, messageID, placeholderReplacements);
- }
-
- // Send a message to the correct channel
- private static void sendMessage(Player p, ChatMessageType chatMessageType, String messageID, String... placeholderReplacements) {
- String message = getRawMessage(messageID);
-
- // Don't send empty messages
- if (StringUtils.isEmpty(message)) {
- return;
- }
-
- int replacementIndexer = 1;
-
- // Replace placeholders
- for (String replacement : placeholderReplacements) {
- String replacementString = "%" + replacementIndexer + "%";
- message = message.replace(replacementString, replacement);
- replacementIndexer = replacementIndexer + 1;
- }
-
- // Convert to baseComponents[] via MineDown formatting and send
- p.spigot().sendMessage(chatMessageType, new MineDown(message).replace().toComponent());
- }
-
- // Send a message with no placeholder parameters
- public static void sendMessage(Player p, String messageID) {
- String message = getRawMessage(messageID);
-
- // Don't send empty messages
- if (StringUtils.isEmpty(message)) {
- return;
- }
-
- // Convert to baseComponents[] via MineDown formatting and send
- p.spigot().sendMessage(new MineDown(message).replace().toComponent());
- }
-
- public static String getRawMessage(String messageID) {
- return messages.get(messageID);
- }
-
- public static String getRawMessage(String messageID, String... placeholderReplacements) {
- String message = messages.get(messageID);
- int replacementIndexer = 1;
-
- // Replace placeholders
- for (String replacement : placeholderReplacements) {
- String replacementString = "%" + replacementIndexer + "%";
- message = message.replace(replacementString, replacement);
- replacementIndexer = replacementIndexer + 1;
- }
- return message;
- }
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/util/NameAutoCompleter.java b/src/main/java/me/william278/huskhomes2/util/NameAutoCompleter.java
deleted file mode 100644
index 53c52f2f..00000000
--- a/src/main/java/me/william278/huskhomes2/util/NameAutoCompleter.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package me.william278.huskhomes2.util;
-
-import me.william278.huskhomes2.HuskHomes;
-import org.bukkit.Bukkit;
-import org.bukkit.entity.Player;
-
-public class NameAutoCompleter {
-
- /*
- * Auto complete a player's name
- */
- public static String getAutoCompletedName(String inputName) {
- if (!HuskHomes.getSettings().doAutoCompletePlayerNames()) {
- return inputName;
- }
- String found = inputName;
-
- // Try for an exact match first.
- Player localPlayer = Bukkit.getPlayerExact(inputName);
- if (localPlayer != null) {
- return localPlayer.getName();
- }
-
- // Iterate through players in the PlayerList to find a match
- String lowerName = inputName.toLowerCase();
- int delta = Integer.MAX_VALUE;
- for (String playerName : HuskHomes.getPlayerList().getPlayers()) {
- if (playerName.toLowerCase().startsWith(lowerName)) {
- int currentDelta = Math.abs(playerName.length() - lowerName.length());
- if (currentDelta < delta) {
- found = playerName;
- delta = currentDelta;
- }
- if (currentDelta == 0) break;
- }
- }
- return found;
- }
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/util/PlayerList.java b/src/main/java/me/william278/huskhomes2/util/PlayerList.java
deleted file mode 100644
index cdf59409..00000000
--- a/src/main/java/me/william278/huskhomes2/util/PlayerList.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package me.william278.huskhomes2.util;
-
-import me.william278.huskhomes2.HuskHomes;
-import me.william278.huskhomes2.data.message.CrossServerMessageHandler;
-import me.william278.huskhomes2.data.message.Message;
-import org.bukkit.Bukkit;
-import org.bukkit.entity.Player;
-
-import java.util.Arrays;
-import java.util.HashSet;
-
-public class PlayerList {
-
- private static final HuskHomes plugin = HuskHomes.getInstance();
- private static final long playerListUpdateTime = HuskHomes.getSettings().getCrossServerTabUpdateDelay() * 20L;
-
- private static HashSet players;
-
- public PlayerList() {
- players = new HashSet<>();
- }
-
- public void initialize() {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> Bukkit.getScheduler().runTaskTimer(plugin, () -> {
- for (Player p : Bukkit.getOnlinePlayers()) {
- updateList(p);
- break;
- }
- }, 0, playerListUpdateTime));
- }
-
- public void updateList(Player updateRequester) {
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
- players.clear();
- if (HuskHomes.getSettings().doBungee() && HuskHomes.getSettings().doCrossServerTabCompletion()) {
- Bukkit.getScheduler().runTask(plugin, () -> CrossServerMessageHandler.getMessage(Message.MessageType.GET_PLAYER_LIST, HuskHomes.getSettings().getServerID()).sendToAllServers(updateRequester));
- }
- for (Player player : Bukkit.getOnlinePlayers()) {
- players.add(player.getName());
- }
- });
- }
-
- public HashSet getPlayers() {
- return players;
- }
-
- public void addPlayer(String player) {
- players.add(player);
- }
-
- public void addPlayers(String[] playerList) {
- players.addAll(Arrays.asList(playerList));
- }
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/util/RegexUtil.java b/src/main/java/me/william278/huskhomes2/util/RegexUtil.java
deleted file mode 100644
index f3fa0d94..00000000
--- a/src/main/java/me/william278/huskhomes2/util/RegexUtil.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package me.william278.huskhomes2.util;
-
-import java.util.regex.Pattern;
-
-public final class RegexUtil {
-
- public static final Pattern DESCRIPTION_PATTERN = Pattern.compile("[a-zA-Z0-9\\d\\-_\\s]+");
- public static final Pattern NAME_PATTERN = Pattern.compile("[A-Za-z0-9_\\-]+");
- public static final Pattern OWNER_NAME_PATTERN = Pattern.compile("[A-Za-z0-9_]+\\.[A-Za-z0-9_\\-]+");
-
-}
diff --git a/src/main/java/me/william278/huskhomes2/util/UpdateChecker.java b/src/main/java/me/william278/huskhomes2/util/UpdateChecker.java
deleted file mode 100644
index e185a22f..00000000
--- a/src/main/java/me/william278/huskhomes2/util/UpdateChecker.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package me.william278.huskhomes2.util;
-import me.william278.huskhomes2.HuskHomes;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.net.URLConnection;
-import java.util.logging.Level;
-
-public class UpdateChecker {
-
- private final static int SPIGOT_PROJECT_ID = 83767;
- private final String currentVersion;
- private String latestVersion;
- private final HuskHomes plugin;
-
- public UpdateChecker(HuskHomes plugin) {
- this.plugin = plugin;
- this.currentVersion = this.plugin.getDescription().getVersion();
-
- try {
- final URL url = new URL("https://api.spigotmc.org/legacy/update.php?resource=" + SPIGOT_PROJECT_ID);
- URLConnection urlConnection = url.openConnection();
- this.latestVersion = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())).readLine();
- } catch (IOException e) {
- this.plugin.getLogger().log(Level.WARNING, "An IOException occurred when trying to check for updates.");
- this.latestVersion = "Unknown";
- } catch (Exception e) {
- this.plugin.getLogger().log(Level.WARNING, "An exception occurred when trying to check for updates.");
- this.latestVersion = "Unknown";
- }
- }
-
- public boolean isUpToDate() {
- if (latestVersion.equalsIgnoreCase("Unknown")) {
- return true;
- }
- return latestVersion.equals(currentVersion);
- }
-
- public String getLatestVersion() {
- return latestVersion;
- }
-
- public String getCurrentVersion() {
- return currentVersion;
- }
-
- public void logToConsole() {
- if (!isUpToDate()) {
- plugin.getLogger().log(Level.WARNING, "A new version of HuskHomes is available: Version "
- + latestVersion + " (Currently running: " + currentVersion + ")");
- }
- }
-}
-
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
deleted file mode 100644
index e180ad3b..00000000
--- a/src/main/resources/config.yml
+++ /dev/null
@@ -1,98 +0,0 @@
-# ------------------------------
-# | HuskHomes Config |
-# | Developed by William278 |
-# ------------------------------
-# Configuration guide: https://github.com/WiIIiam278/HuskHomes2/wiki/Config-File
-
-language: 'en-gb'
-check_for_updates: true
-data_storage_options:
- storage_type: 'SQLite'
- mysql_credentials:
- host: localhost
- port: 3306
- database: HuskHomes
- username: root
- password: pa55w0rd
- params: '?autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull'
- connection_pool_options:
- maximum_pool_size: 10
- minimum_idle: 10
- maximum_lifetime: 1800000
- keepalive_time: 0
- connection_timeout: 5000
- table_names:
- player_data: 'huskhomes_player_data'
- locations_data: 'huskhomes_location_data'
- homes_data: 'huskhomes_home_data'
- warps_data: 'huskhomes_warp_data'
-general:
- max_sethomes: 10
- auto_complete_player_names: true
- home_limit_permission_stacking: false
- teleport_warmup_time: 5
- teleport_warmup_display: ACTION_BAR
- teleport_request_expiry_time: 60
- allow_unicode_descriptions: true
- enable_back_command: true
- use_paperlib_if_available: true
- sounds:
- teleportation_complete: 'ENTITY_ENDERMAN_TELEPORT'
- teleportation_warmup: 'BLOCK_NOTE_BLOCK_BANJO'
- teleportation_cancelled: 'ENTITY_ITEM_BREAK'
- lists:
- private_homes_per_page: 10
- public_homes_per_page: 10
- warps_per_page: 10
- help_menu:
- hide_commands_without_permission: true
- hide_huskhomes_command: false
-bungee_options:
- enable_bungee_mode: false
- server_id: 'server'
- cluster_id: 0
- messenger_type: 'pluginmessage'
- redis_credentials:
- host: localhost
- port: 6379
- password: ''
- use_ssl: false
- tab_complete_cross_server:
- enabled: true
- delay: 60
-warp_command:
- enabled: true
- permission_restrictions:
- require_permission: false
- format: 'huskhomes.warp.'
- hide_restricted_warps: true
-spawn_command:
- enabled: true
- force_teleport_on_login: false
- bungee_network_spawn:
- enabled: false
- warp_name: 'Spawn'
-random_teleport_command:
- enabled: true
- cooldown: 30
- range: 5000
-map_integration:
- enabled: false
- plugin: 'dynmap'
- markers:
- public_homes:
- show: true
- set_name: 'Public Homes'
- warps:
- show: true
- set_name: 'Warps'
-economy_integration:
- enabled: false
- free_home_slots: 5
- costs:
- additional_home_slot: 100
- make_home_public: 50
- random_teleport: 20
- back: 0
-handle_vanished_players: true
-config_file_version: 9
\ No newline at end of file
diff --git a/src/main/resources/languages/de-de.yml b/src/main/resources/languages/de-de.yml
deleted file mode 100644
index 9d22909a..00000000
--- a/src/main/resources/languages/de-de.yml
+++ /dev/null
@@ -1,153 +0,0 @@
-error_no_permission: '[Fehler:](#ff3300) [Du hast nicht die benötigten Berechtigungen, um diesen Befehl auszuführen.](#ff7e5e)'
-error_no_last_position: '[Fehler:](#ff3300) [Du hast keine letzte Position, zu der du zurückkehren kannst!](#ff7e5e)'
-teleporting_last_position: '[Rückkehr zu deiner letzten Position in](#00fb9a) [%1%](#00fb9a bold) [Sekunden](#00fb9a)'
-teleporting_offline_player: '[Du wirst dorthin teleportiert, wo sich %1% zuletzt ausgeloggt hat...](#00fb9a)'
-teleporting_countdown_start: '[Du wirst teleportiert in](#00fb9a) [%1%](#00fb9a bold) [Sekunden](#00fb9a)'
-teleporting_cancelled_movement: '[Teleportation abgebrochen; du hast dich bewegt!](#ff7e5e)'
-teleporting_cancelled_damage: '[Teleportation abgebrochen; du hast Schaden erhalten!](#ff7e5e)'
-teleporting_complete: '[Teleportation abgeschlossen!](#00fb9a)'
-teleporting_action_bar_countdown: '[Teleportation in](#00fb9a) [%1%](#00fb9a bold)[...](#00fb9a)'
-teleporting_action_bar_cancelled: '[Teleportation abgebrochen!](#ff7e5e)'
-teleporting_please_stand_still: '[Die Teleportation wird abgebrochen, wenn du dich bewegst oder Schaden nimmst.](gray)'
-home_deleted: '[Du hast dein Home namens](#00fb9a) [%1%](#00fb9a bold) [erfolgreich gelöscht](#00fb9a)'
-home_deleted_other: '[Du hast das Home von %1% namens](#00fb9a) [%2%](#00fb9a bold) [erfolgreich gelöscht](#00fb9a)'
-warp_deleted: '[Du hast den Warp namens](#00fb9a) [%1%](#00fb9a bold) [erfolgreich gelöscht](#00fb9a)'
-error_home_invalid: '[Fehler:](#ff3300) [Du hast kein Home mit namens "%1%"](#ff7e5e)'
-error_warp_invalid: '[Fehler:](#ff3300) [Es existiert kein Warp namens "%1%"](#ff7e5e)'
-error_invalid_syntax: '[Fehler:](#ff3300) [Falscher Syntax. Nutze: %1%](#ff7e5e)'
-edit_home_title: '\n[Ändere Home Details für dein Home namens](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_home_title_other: '\n[Ändere Home Details für das Home von %1% namens](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'
-edit_home_options: '\n[[Teleport]](green show_text=&7Teleportiere dich zu diesem Home run_command=/huskhomes:home %1%.%2%) [[Löschen]](red show_text=&7Lösche dieses Home run_command=/huskhomes:delhome %1%.%2%) [[Position ändern]](blue show_text=&7Ändere die Position dieses Homes run_command=/huskhomes:edithome %1%.%2% location)\n[[Umbenennen]](yellow show_text=&7Ändere den Namen dieses Homes suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Beschreibung ändern]](gold show_text=&7Ändere die Beschreibung dieses Homes suggest_command=/huskhomes:edithome %1%.%2% description )\n'
-edit_home_options_make_public: '\n[[Teleport]](green show_text=&7Teleportiere dich zu diesem Home run_command=/huskhomes:home %1%.%2%) [[Löschen]](red show_text=&7Lösche dieses Home run_command=/huskhomes:delhome %1%.%2%) [[Position ändern]](blue show_text=&7Ändere die Position dieses Homes run_command=/huskhomes:edithome %1%.%2% location)\n[[Umbenennen]](yellow show_text=&7Ändere den Namen dieses Homes suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Beschreibung ändern]](gold show_text=&7Ändere die Beschreibung dieses Homes suggest_command=/huskhomes:edithome %1%.%2% description ) [[Öffentlich stellen]](dark_green show_text=&7Mache dieses Home öffentlich sichtbar run_command=/huskhomes:edithome %1%.%2% public)\n'
-edit_home_options_make_private: '\n[[Teleport]](green show_text=&7Teleportiere dich zu diesem Home run_command=/huskhomes:home %1%.%2%) [[Löschen]](red show_text=&7Lösche dieses Home run_command=/huskhomes:delhome %1%.%2%) [[Position ändern]](blue show_text=&7Ändere die Position dieses Homes run_command=/huskhomes:edithome %1%.%2% location)\n[[Umbenennen]](yellow show_text=&7Ändere den Namen dieses Homes suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Beschreibung ändern]](gold show_text=&7Ändere die Beschreibung dieses Homes suggest_command=/huskhomes:edithome %1%.%2% description ) [[Privat stellen]](dark_red show_text=&7Mache dieses Home privat run_command=/huskhomes:edithome %1%.%2% private)\n'
-edit_home_privacy_private: '• Zugang: ff7e5e&Privat &7(Nur du kannst dieses Home benutzen)'
-edit_home_privacy_private_other: '• Zugang: ff7e5e&Privat &7(Nur %1% kann dieses Home benutzen)'
-edit_home_privacy_public: '• Zugang: &aÖffentlich &7(Jeder kann dieses Home benutzen)'
-edit_home_privacy_public_success: '[Du hast dein Home](#00fb9a) [%1%](#00fb9a bold) [öffentlich sichtbar gemacht.](#00fb9a)'
-edit_home_privacy_public_success_economy: '[Du hast dein Home](#00fb9a) [%1%](#00fb9a bold)[öffentlich sichtbar gemacht für %2%.](#00fb9a)'
-edit_home_privacy_private_success: '[Du hast dein Home](#00fb9a) [%1%](#00fb9a bold) [auf privat gestellt.](#00fb9a)'
-error_edit_home_privacy_already_public: '[Fehler:](#ff3300) [Dieses Home ist bereits öffentlich.](#ff7e5e)'
-error_edit_home_privacy_already_private: '[Fehler:](#ff3300) [Dieses Home ist bereits privat.](#ff7e5e)'
-error_edit_home_privacy_no_permission: '[Fehler:](#ff3300) [Du hast nicht die benötigten Berechtigungen um Homes öffentlich zu machen.](#ff7e5e)'
-error_edit_home_description_length: '[Fehler:](#ff3300) [Die Beschreibung eines Homes muss weniger als 255 Zeichen lang sein.](#ff7e5e)'
-error_edit_home_description_characters: '[Fehler:](#ff3300) [Die Beschreibung eines Homes darf nur alphanumerische (A-Z, 0-9) Zeichen, Bindestriche (-) und Unterstriche (_) beinhalten.](#ff7e5e)'
-edit_home_update_location: '[Der Standort des Homes](#00fb9a) [%1%](#00fb9a bold) [wurde zu deiner aktuellen Position geändert.](#00fb9a)'
-edit_home_update_description: '[Die Beschreibung für das Home](#00fb9a) [%1%](#00fb9a bold) [wurde zu "%2%" geändert.](#00fb9a)'
-edit_home_update_name: '[Der Name deines Homes wurde erfolgreich geändert: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_warp_title: '\n[Ändere Details für den Warp](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_warp_options: '\n[[Teleport]](green show_text=&7Teleportiere dich zu diesem Warp run_command=/huskhomes:warp %1%) [[Löschen]](red show_text=&7Lösche diesen Warp run_command=/huskhomes:delwarp %1%) [[Position ändern]](blue show_text=&7Ändere die Position dieses Warps run_command=/huskhomes:editwarp %1% location)\n[[Umbenennen]](yellow show_text=&7Änderen den Namen dieses Warps suggest_command=/huskhomes:editwarp %1% rename ) [[Beschreibung ändern]](gold show_text=&7Ändere die Beschreibung dieses Warps suggest_command=/huskhomes:editwarp %1% description )\n'
-error_edit_warp_description_length: '[Fehler:](#ff3300) [Die Beschreibung eines Warps muss weniger als 255 Zeichen lang sein.](#ff7e5e)'
-error_edit_warp_description_characters: '[Fehler:](#ff3300) [Die Beschreibung eines Warps darf nur alphanumerische (A-Z, 0-9) Zeichen, Bindestriche (-) und Unterstriche (_) beinhalten.](#ff7e5e)'
-edit_warp_update_location: '[Der Standort des Warpes](#00fb9a) [%1%](#00fb9a bold) [wurde zu deiner aktuellen Position geändert.](#00fb9a)'
-edit_warp_update_description: '[Die Beschreibung für den Warp](#00fb9a) [%1%](#00fb9a bold) [wurde zu "%2%" geändert.](#00fb9a)'
-edit_warp_update_name: '[Der Name des Warps wurde erfolgreich geändert: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_description: '• Beschreibung: &7%1%'
-edit_location: '• Position: &7%1%, %2%, %3%'
-edit_world: '• Welt: &7%1%'
-edit_server: '• Server: &7%1%'
-edit_timestamp: '• Erstellt: &7%1%'
-error_no_homes_set: '[Fehler:](#ff3300) [Du hast noch keine Homes gesetzt!](#ff7e5e)'
-error_no_public_homes_set: '[Fehler:](#ff3300) [Es existiert kein öffentliches Home!](#ff7e5e)'
-error_no_warps_set: '[Fehler:](#ff3300) [Ex existiert kein Warp!](#ff7e5e)'
-private_home_list_page_top: '\n[Homes von %1%:](#00fb9a) [(](#00fb9a)[%2%-%3%](#00fb9a bold) [von](#00fb9a) [%4%](#00fb9a bold)[)](#00fb9a)\n'
-public_home_list_page_top: '\n[Öffentliche Homes:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [von](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-warp_list_page_top: '\n[Warps:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [von](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-error_public_home_invalid: '[Fehler:](#ff3300) [Es wurde kein öffentliches Home von %1% namens %2% gefunden.](#ff7e5e)'
-error_set_home_invalid_characters: '[Fehler:](#ff3300) [Homenamen müssen alphanumerisch sein (A-Z, 0-9, -_)](#ff7e5e)'
-error_set_home_invalid_length: '[Fehler:](#ff3300) [Homenamen dürfen nur bis zu 16 Zeichen enthalten!](#ff7e5e)'
-error_set_warp_invalid_characters: '[Fehler:](#ff3300) [Warpnamen müssen alphanumerisch sein (A-Z,0-9, -_)](#ff7e5e)'
-error_set_warp_invalid_length: '[Fehler:](#ff3300) [Warpnamen dürfen nur bis zu 16 Zeichen enthalten!](#ff7e5e)'
-error_set_home_maximum_homes: '[Fehler:](#ff3300) [Du darfst nicht mehr als %1% Homes setzen!](#ff7e5e)'
-error_insufficient_funds: '[Fehler:](#ff3300) [Du hast nicht genug Geld! (Kosten: %1%)](#ff7e5e)'
-set_home_spent_money: '[Erfolgreich %1% ausgegeben, für ein zusätzliches Home!](gray)'
-set_home_used_free_slots: '[Du hast alle deine kostenlose Homeslots aufgebraucht (%1%); zusätzliche Homes kosten jeweils %2%.](gray)'
-set_home_success: '[Erfolgreich ein neues Home namens](#00fb9a) [%1%](#00fb9a bold) [gesetzt.](#00fb9a)'
-set_warp_success: '[Erfolgreich ein neues Warp namens](#00fb9a) [%1%](#00fb9a bold) [gesetzt.](#00fb9a)'
-error_set_home_name_taken: '[Fehler:](#ff3300) [Du besitzt bereits ein Home mit diesem Namen.](#ff7e5e)'
-error_set_warp_name_taken: '[Fehler:](#ff3300) [Es existiert bereits ein Warp mit diesem Namen.](#ff7e5e)'
-set_spawn_success: '[Die Spawn-Position für diesen Server wurde auf deinen aktuellen Standort aktualisiert.](#00fb9a)'
-error_spawn_undefined: '[Fehler:](#ff3300) [Auf diesem Server ist keine Spawn-Position definiert.](#ff7e5e)'
-error_tpa_no_pending_request: '[Fehler:](#ff3300) [Du hast keine ausstehende Teleportanfrage.](#ff7e5e)'
-error_tpa_request_expired: '[Fehler:](#ff3300) [Deine ausstehende Teleportanfrage ist abgelaufen.](#ff7e5e)'
-error_player_not_found: '[Fehler:](#ff3300) [Der Spieler %1% konnte nicht gefunden werden.](#ff7e5e)'
-return_by_death: '[Dorthin zurückkehren, wo du gestorben bist?](gray) [/back](#00fb9a show_text=fb9a&Klicke um zu deinem Todespunkt zurückzukehren run_command=/back)'
-teleport_request_options: '[Eine Option anklicken:](gray) [[Akzeptieren]](#00fb9a show_text=fb9a&Akzeptiere die Teleportanfrage; /tpaccept %1% run_command=/tpaccept %1%) [•](gray) [[Ablehnen]](#ff7e5e show_text=ff7e5e&Lehnre die Teleportanfrage ab; /tpdeny %1% run_command=/tpdeny %1%)'
-tpa_you_accepted: '[Du hast die Teleportanfrage von %1% akzeptiert](#00fb9a)'
-tpa_you_declined: '[Du hast die Teleportanfrage von %1% abgelehnt](#ff7e5e)'
-tpa_has_accepted: '[%1% hat deine Teleportanfrage akzeptiert](#00fb9a)'
-tpa_has_declined: '[%1% hat deine Teleportanfrage abgelehnt](#ff7e5e)'
-tpa_request_sent: '[Du hast](#00fb9a) [%1%](#00fb9a bold) [eine Teleportanfrage zu seiner Position gesendet](#00fb9a)'
-tpa_request_ask: '[%1%](#00fb9a bold) [hat dir eine Teleportanfrage zu deiner Position gesendet](#00fb9a)'
-tpahere_request_sent: '[Du hast](#00fb9a) [%1%](#00fb9a bold) [eine Teleportanfrage zu deiner Position gesendet](#00fb9a)'
-tpahere_request_ask: '[%1%](#00fb9a bold) [hat dir eine Teleportanfrage zu seiner Position gesendet](#00fb9a)'
-error_tp_self: '[Fehler:](#ff3300) [Du kannst dich nicht zu dir selbst teleportieren!](#ff7e5e)'
-error_rtp_invalid_dimension: '[Fehler:](#ff3300) [Du kannst dich nur in der Oberwelt zufällig teleportieren!](#ff7e5e)'
-error_rtp_cooldown: '[Fehler:](#ff3300) [Du musst %1% Minuten warten, bevor du dich wieder zufällig teleportieren kannst.](#ff7e5e)'
-rtp_spent_money: '[Du hast %1% ausgegeben, um zufällig zu teleportieren.](gray)'
-back_spent_money: '[Du hast %1% ausgegeben, um zu deiner letzten Position zurückzukehren.](gray)'
-error_command_disabled: '[Fehler:](#ff3300) [Dieser Befehl ist deaktiviert!](#ff7e5e)'
-error_console_only: '[Fehler:](#ff3300) [Dieser Befehl kann nur über die Serverkonsole ausgeführt werden.](#ff7e5e)'
-error_tp_invalid_world: '[Fehler:](#ff3300) [Bitte gib eine gültige Welt auf diesem Server an.](#ff7e5e)'
-error_rtp_randomization_timeout: '[Fehler:](#ff3300) [Es ist nicht gelungen, einen sicheren zufälligen Ort zu finden, um dich zu teleportieren.](#ff7e5e)'
-list_item_divider: ' [•](gray) '
-home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)'
-public_home_list_item: '[[%1%]](show_text=fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
-warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
-home_default_description: 'Home von %1%'
-warp_default_description: 'Ein öffentlich zugänglicher Warp'
-delete_all_homes_confirm: '[Warnung:](#ff3300) [Bist du dir sicher, dass du alle deine Homes löschen möchtest?](#ff7e5e)\n[Sobald dies bestätigt wurde, ist es nicht mehr möglich, sie wiederherzustellen.](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=/delhome all confirm)'
-delete_all_warps_confirm: '[Warnung:](#ff3300) [Bist du dir sicher, dass du alle Warps löschen möchtest?](#ff7e5e)\n[Sobald dies bestätigt wurde, ist es nicht mehr möglich, sie wiederherzustellen.](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=/delwarp all confirm)'
-delete_all_homes_success: '[Erfolgreich alle](#00fb9a) [%1%](#00fb9a bold) [Home(s) gelöscht.](#00fb9a)'
-delete_all_warps_success: '[Erfolgreich alle](#00fb9a) [%1%](#00fb9a bold) [Warp(s) gelöscht.](#00fb9a)'
-error_permission_restricted_warp: '[Fehler:](#ff3300) [Du hast nicht die Erlaubnis, nach %1% zu warpen!](#ff7e5e)'
-teleporting_complete_console: '[Die Konsole hat dich zu %1% teleportiert.](gray)'
-spawn_warp_default_description: 'Die /spawn-Position des Servers'
-error_invalid_page_number: '[Fehler:](#ff3300) [Bitte gib eine gültige Seitenzahl an.](#ff7e5e)'
-page_options: '[←](gray show_text=&7Sehe vorherige Seite run_command=%1%) [Seite %2%/%3%](#00fb9a) [→](gray show_text=&7Sehe nächste Seite run_command=%4%)'
-page_options_min: '[Seite %1%/%2%](#00fb9a) [→](gray show_text=&7Sehe nächste Seite run_command=%3%)'
-page_options_min_max: '[Seite %1%/%2%](#00fb9a)'
-page_options_max: '[←](gray show_text=&7Sehe vorherige Seite run_command=%1%) [Seite %2%/%3%](#00fb9a)'
-page_no_items: '[(Nichts kann auf dieser Seite angezeigt werden)](gray show_text=&7Versuche eine andere Seitenzahl)'
-command_list_header: '\n[HuskHomes](#00fb9a bold) [| Befehlsliste](#00fb9a)'
-command_list_item: '[/%1%](#00fb9a show_text=fb9a&%2% suggest_command=/%1%) [•](white) [%3%](gray)'
-error_invalid_on_arrival: '[Fehler:](#ff3300) [Die Teleportation konnte nicht abgeschlossen werden, da die Zielwelt nicht gefunden werden konnte.](#ff7e5e)'
-tpignore_toggle_on: '[Du](#00fb9a) [ignorierst](#00fb9a bold) [aktuell eingehende Teleportanfragen.](#00fb9a) [(Klicke zum Umschalten)](gray show_text=&7Klicke um eingehende Teleportanfragen zu erhalten. run_command=/huskhomes:tpignore)'
-tpignore_toggle_off: '[Du](#00fb9a) [erhältst](#00fb9a bold) [aktuell eingehende Teleportanfragen.](#00fb9a) [(Klicke zum Umschalten)](gray show_text=&7Klicke um eingehende Teleportanfragen zu ignorieren. run_command=/huskhomes:tpignore)'
-tpignore_on_reminder: '[Du ignorierst aktuell eingehende Teleportanfragen!](gray) [(Klicke zum Umschalten)](gray show_text=&7Klicke um eingehende Teleportanfragen zu erhalten. run_command=/huskhomes:tpignore)'
-error_ignoring_teleport_requests: '[Fehler:](#ff3300) [Du ignorierst aktuell eingehende Teleportanfragen!](#ff7e5e) [(Klicke zum Umschalten)](#ff7e5e show_text=ff7e5e&Klicke um eingehende Teleportanfragen zu erhalten. run_command=/huskhomes:tpignore)'
-error_no_offline_position: '[Fehler:](#ff3300) [Konnte nicht herausfinden, wo sich %1% zuletzt ausgeloggt hat.](#ff7e5e)'
-error_invalid_player: '[Fehler:](#ff3300) [Bitte gib den Namen eines gültigen Spielers an!](#ff7e5e)'
-error_no_homes_set_other: '[Fehler:](#ff3300) [%1% hat keine Homes gesetzt!](#ff7e5e)'
-error_home_invalid_other: '[Fehler:](#ff3300) [%1% hat kein Home mit dem Namen "%2%" gesetzt](#ff7e5e)'
-error_edit_home_maximum_public_homes: '[Fehler:](#ff3300) [Du kannst maximal %1% Homes öffentlich sichtbar machen.](#ff7e5e)'
-tpaall_request_sent: '[Du hast eine Teleportanfrage gestellt und alle gebeten, sich zu dir zu teleportieren!](#00fb9a)'
-error_no_other_online_players: '[Fehler:](#ff3300) [Es gibt keine anderen Spieler, die online sind und sich zu dir teleportieren können.](#ff7e5e)'
-teleporting_all_players: '[Teleportiere alle Spieler zu deiner Position...](#00fb9a)'
-error_illegal_target_coordinates: '[Fehler:](#ff3300) [Teleport abgebrochen, da er die möglichen Grenzen der Welt überschreitet.](#ff7e5e)'
-home_command_description: 'Teleportiere dich zu einem deiner Homes'
-sethome_command_description: 'Setze ein neues Home mit dem angegebenen Namen'
-delhome_command_description: 'Lösche ein Home, welches du vorher gesetzt hast'
-edithome_command_description: 'Ändere eins deiner Homes'
-warp_command_description: 'Teleportiere dich zu einem Warp'
-setwarp_command_description: 'Setze ein neues Warp mit dem angegebenen Namen'
-delwarp_command_description: 'Lösche ein Warp'
-editwarp_command_description: 'Ändere ein Warp'
-back_command_description: 'Kehre zu deiner letzten Position oder zu deinem Todespunkt zurück.'
-homelist_command_description: 'Erhalte eine Liste deiner Homes'
-warplist_command_description: 'Siehe die Liste der Warps'
-publichomelist_command_description: 'Siehe die Liste der öffentlichen Homes'
-publichome_command_description: 'Teleportiere dich zu einem öffentlichen Home'
-tp_command_description: 'Teleportiere dich zu einem anderen Spieler oder eine Position'
-tphere_command_description: 'Teleportiere einen Spieler zu dir'
-tpa_command_description: 'Frage einem Spieler sich zu ihm zu teleportieren'
-tpahere_command_description: 'Frage einem Spieler sich zu dir zu teleportieren'
-tpaccept_command_description: 'Akzeptiere eine Teleportanfrage'
-tpdeny_command_description: 'Lehne eine Teleportanfrage ab'
-tpignore_command_description: 'Ignoriere einkommende Teleportanfragen'
-tpoffline_command_description: 'Teleportiere dich an die letzte Position eines Spielers'
-rtp_command_description: 'Teleportiere dich an eine zufällige Position'
-spawn_command_description: 'Teleportiere dich zum Spawn'
-setspawn_command_description: 'Setze die Spawnposition'
-tpaall_command_description: 'Frage alle Spieler sich zu dir zu teleportieren'
-tpall_command_description: 'Teleportiere alle Spieler zu dir'
-huskhomes_command_description: 'Siehe Plugin-Information und lade die Config-Dateien neu'
diff --git a/src/main/resources/languages/en-gb.yml b/src/main/resources/languages/en-gb.yml
deleted file mode 100644
index b5962741..00000000
--- a/src/main/resources/languages/en-gb.yml
+++ /dev/null
@@ -1,153 +0,0 @@
-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_offline_player: '[Teleporting you to where %1% last logged out...](#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 called](#00fb9a) [%1%](#00fb9a bold)'
-home_deleted_other: '[Successfully deleted %1%''s home,](#00fb9a) [%2%](#00fb9a bold)'
-warp_deleted: '[Successfully deleted the warp called](#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: '\n[Edit home details for](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_home_title_other: '\n[Edit home details for %1%''s home,](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'
-edit_home_options: '\n[[Teleport]](green show_text=&7Teleport to this home run_command=/huskhomes:home %1%.%2%) [[Delete]](red show_text=&7Delete this home run_command=/huskhomes:delhome %1%.%2%) [[Relocate]](blue show_text=&7Update this home''s location run_command=/huskhomes:edithome %1%.%2% location)\n[[Rename]](yellow show_text=&7Change the name of this home suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Edit Description]](gold show_text=&7Update the description of this home suggest_command=/huskhomes:edithome %1%.%2% description )\n'
-edit_home_options_make_public: '\n[[Teleport]](green show_text=&7Teleport to this home run_command=/huskhomes:home %1%.%2%) [[Delete]](red show_text=&7Delete this home run_command=/huskhomes:delhome %1%.%2%) [[Relocate]](blue show_text=&7Update this home''s location run_command=/huskhomes:edithome %1%.%2% location)\n[[Rename]](yellow show_text=&7Change the name of this home suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Edit Description]](gold show_text=&7Update the description of this home suggest_command=/huskhomes:edithome %1%.%2% description ) [[Make Public]](dark_green show_text=&7Open this home to the public run_command=/huskhomes:edithome %1%.%2% public)\n'
-edit_home_options_make_private: '\n[[Teleport]](green show_text=&7Teleport to this home run_command=/huskhomes:home %1%.%2%) [[Delete]](red show_text=&7Delete this home run_command=/huskhomes:delhome %1%.%2%) [[Relocate]](blue show_text=&7Update this home''s location run_command=/huskhomes:edithome %1%.%2% location)\n[[Rename]](yellow show_text=&7Change the name of this home suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Edit Description]](gold show_text=&7Update the description of this home suggest_command=/huskhomes:edithome %1%.%2% description ) [[Make Private]](dark_red show_text=&7Make this home private run_command=/huskhomes:edithome %1%.%2% private)\n'
-edit_home_privacy_private: '• Access: ff7e5e&Private &7(Only you can use it)'
-edit_home_privacy_private_other: '• Access: ff7e5e&Private &7(Only %1% can use it)'
-edit_home_privacy_public: '• Access: &aPublic &7(Anyone can use it)'
-edit_home_privacy_public_success: '[Successfully made the home,](#00fb9a) [%1%](#00fb9a bold)[, open to the public.](#00fb9a)'
-edit_home_privacy_public_success_economy: '[Successfully made the home,](#00fb9a) [%1%](#00fb9a bold)[, open to the public for %2%.](#00fb9a)'
-edit_home_privacy_private_success: '[Successfully made the home,](#00fb9a) [%1%](#00fb9a bold)[, private.](#00fb9a)'
-error_edit_home_privacy_already_public: '[Error:](#ff3300) [This home is already set as public.](#ff7e5e)'
-error_edit_home_privacy_already_private: '[Error:](#ff3300) [This home is already set as private.](#ff7e5e)'
-error_edit_home_privacy_no_permission: '[Error:](#ff3300) [You do not have permission to make homes public.](#ff7e5e)'
-error_edit_home_description_length: '[Error:](#ff3300) [Home descriptions must be less than 255 characters in length.](#ff7e5e)'
-error_edit_home_description_characters: '[Error:](#ff3300) [Home descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_)](#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)'
-edit_warp_title: '\n[Edit details for the warp](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_warp_options: '\n[[Teleport]](green show_text=&7Teleport to this warp run_command=/huskhomes:warp %1%) [[Delete]](red show_text=&7Delete this warp run_command=/huskhomes:delwarp %1%) [[Relocate]](blue show_text=&7Update this warp''s location run_command=/huskhomes:editwarp %1% location)\n[[Rename]](yellow show_text=&7Change the name of this warp suggest_command=/huskhomes:editwarp %1% rename ) [[Edit Description]](gold show_text=&7Update this warp''s description suggest_command=/huskhomes:editwarp %1% description )\n'
-error_edit_warp_description_length: '[Error:](#ff3300) [Warp descriptions must be less than 255 characters in length.](#ff7e5e)'
-error_edit_warp_description_characters: '[Error:](#ff3300) [Warp descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_)](#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)'
-edit_description: '• Description: &7%1%'
-edit_location: '• Location: &7%1%, %2%, %3%'
-edit_world: '• World: &7%1%'
-edit_server: '• Server: &7%1%'
-edit_timestamp: '• Created: &7%1%'
-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: '\n[%1%''s Homes:](#00fb9a) [(](#00fb9a)[%2%-%3%](#00fb9a bold) [of](#00fb9a) [%4%](#00fb9a bold)[)](#00fb9a)\n'
-public_home_list_page_top: '\n[Public Homes:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-warp_list_page_top: '\n[Warps:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-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 position for this server to your current location.](#00fb9a)'
-error_spawn_undefined: '[Error:](#ff3300) [There is no spawn position 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 %1% run_command=/tpaccept %1%) [•](gray) [[Decline]](#ff7e5e show_text=ff7e5e&Decline the teleport request; /tpdeny %1% run_command=/tpdeny %1%)'
-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)'
-list_item_divider: ' [•](gray) '
-home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)'
-public_home_list_item: '[[%1%]](show_text=fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
-warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
-home_default_description: '%1%''s home'
-warp_default_description: 'A publicly accessible warp'
-delete_all_homes_confirm: '[Warning:](#ff3300) [Are you sure you want to delete all of your homes?](#ff7e5e)\n[Once you confirm, it will not be possible to recover them.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=ff3300&Click to confirm deletion. This cannot be undone. run_command=/delhome all confirm)'
-delete_all_warps_confirm: '[Warning:](#ff3300) [Are you sure you want to delete every warp?](#ff7e5e)\n[Once you confirm, it will not be possible to recover them.](gray)\n[→](gray) [[Confirm]](#ff3300 show_text=ff3300&Click to confirm deletion. This cannot be undone. run_command=/delwarp all 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'
-error_invalid_page_number: '[Error:](#ff3300) [Please specify a valid page number.](#ff7e5e)'
-page_options: '[←](gray show_text=&7View previous page run_command=%1%) [Viewing Page %2%/%3%](#00fb9a) [→](gray show_text=&7View next page run_command=%4%)'
-page_options_min: '[Viewing Page %1%/%2%](#00fb9a) [→](gray show_text=&7View next page run_command=%3%)'
-page_options_min_max: '[Viewing Page %1%/%2%](#00fb9a)'
-page_options_max: '[←](gray show_text=&7View previous page run_command=%1%) [Viewing Page %2%/%3%](#00fb9a)'
-page_no_items: '[(No items to display on this page)](gray show_text=&7Try a different page number)'
-command_list_header: '\n[HuskHomes](#00fb9a bold) [| Command List](#00fb9a)'
-command_list_item: '[/%1%](#00fb9a show_text=fb9a&%2% suggest_command=/%1%) [•](white) [%3%](gray)'
-error_invalid_on_arrival: '[Error:](#ff3300) [Failed to finish your teleportation as the target world could not be found.](#ff7e5e)'
-tpignore_toggle_on: '[You are now](#00fb9a) [ignoring](#00fb9a bold) [incoming teleport requests.](#00fb9a) [(Click to toggle)](gray show_text=&7Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)'
-tpignore_toggle_off: '[You are now](#00fb9a) [listening](#00fb9a bold) [to any incoming teleport requests.](#00fb9a) [(Click to toggle)](gray show_text=&7Click to ignore incoming teleport requests run_command=/huskhomes:tpignore)'
-tpignore_on_reminder: '[You are currently ignoring incoming teleport requests!](gray) [(Click to toggle)](gray show_text=&7Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)'
-error_ignoring_teleport_requests: '[Error:](#ff3300) [You are currently ignoring teleport requests!](#ff7e5e) [(Click to toggle)](#ff7e5e show_text=ff7e5e&Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)'
-error_no_offline_position: '[Error:](#ff3300) [Could not find where %1% last logged out.](#ff7e5e)'
-error_invalid_player: '[Error:](#ff3300) [Please specify the name of a valid player!](#ff7e5e)'
-error_no_homes_set_other: '[Error:](#ff3300) [%1% hasn''t set any homes!](#ff7e5e)'
-error_home_invalid_other: '[Error:](#ff3300) [%1% doesn''t have a home set named "%2%"](#ff7e5e)'
-error_edit_home_maximum_public_homes: '[Error:](#ff3300) [You can only make a maximum of %1% homes public.](#ff7e5e)'
-tpaall_request_sent: '[You sent a teleport request asking everyone to teleport to you!](#00fb9a)'
-error_no_other_online_players: '[Error:](#ff3300) [There are no other online players who could teleport to you.](#ff7e5e)'
-teleporting_all_players: '[Teleporting all players to your position...](#00fb9a)'
-error_illegal_target_coordinates: '[Error:](#ff3300) [Aborted teleport as it exceeds the possible game world limits.](#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'
-edithome_command_description: 'Edit one of your homes'
-warp_command_description: 'Teleport to a warp'
-setwarp_command_description: 'Set a new warp with given name'
-delwarp_command_description: 'Delete a warp'
-editwarp_command_description: 'Edit a warp'
-back_command_description: 'Return to your previous position, or where you died'
-homelist_command_description: 'Get a list of your homes'
-warplist_command_description: 'View the list of warps'
-publichomelist_command_description: 'View the list of public homes'
-publichome_command_description: 'Teleport to a public home'
-tp_command_description: 'Teleport to another player or location'
-tphere_command_description: 'Teleport another player to you'
-tpa_command_description: 'Request to teleport to another player'
-tpahere_command_description: 'Request another player to teleport to you'
-tpaccept_command_description: 'Accept a teleport request'
-tpdeny_command_description: 'Deny a teleport request'
-tpignore_command_description: 'Ignore incoming teleport requests'
-tpoffline_command_description: 'Teleport to where a player was last online'
-rtp_command_description: 'Teleport randomly into the wild'
-spawn_command_description: 'Teleport to spawn'
-setspawn_command_description: 'Set the spawn position'
-tpaall_command_description: 'Request that everyone teleports to you'
-tpall_command_description: 'Teleport everyone to your position'
-huskhomes_command_description: 'View plugin information & reload configs'
\ No newline at end of file
diff --git a/src/main/resources/languages/es-es.yml b/src/main/resources/languages/es-es.yml
deleted file mode 100644
index a4209cc6..00000000
--- a/src/main/resources/languages/es-es.yml
+++ /dev/null
@@ -1,153 +0,0 @@
-error_no_permission: '[Error:](#ff3300) [No tienes permiso para ejecutar este comando.](#ff7e5e)'
-error_no_last_position: '[Error:](#ff3300) [No puedes volver a ninguna de tus ubicaciones anteriores!](#ff7e5e)'
-teleporting_last_position: '[Volviendo a tu última ubicación en](#00fb9a) [%1%](#00fb9a bold) [segundos](#00fb9a)'
-teleporting_offline_player: '[Teletransportandote a donde %1% se ha desconectado...](#00fb9a)'
-teleporting_countdown_start: '[Serás teletransportado en](#00fb9a) [%1%](#00fb9a bold) [segundos](#00fb9a)'
-teleporting_cancelled_movement: '[Teletransporte cancelado; te has movido!](#ff7e5e)'
-teleporting_cancelled_damage: '[Teletransporte cancelado; Has recibido daño!](#ff7e5e)'
-teleporting_complete: '[Teletransporte completado!](#00fb9a)'
-teleporting_action_bar_countdown: '[Teletransporte en](#00fb9a) [%1%](#00fb9a bold)[...](#00fb9a)'
-teleporting_action_bar_cancelled: '[Teletransporte cancelado!](#ff7e5e)'
-teleporting_please_stand_still: '[El teletransporte será cancelado si te mueves o recibes daño.](gray)'
-home_deleted: '[Se ha eliminado satisfactoriamente la casa llamada](#00fb9a) [%1%](#00fb9a bold)'
-home_deleted_other: '[Has eliminado la casa de %1%,](#00fb9a) [%2%](#00fb9a bold)'
-warp_deleted: '[Has eliminado el warp](#00fb9a) [%1%](#00fb9a bold)'
-error_home_invalid: '[Error:](#ff3300) [No tienes ninguna casa con nombre "%1%"](#ff7e5e)'
-error_warp_invalid: '[Error:](#ff3300) [No hay ningún warp con nombre "%1%"](#ff7e5e)'
-error_invalid_syntax: '[Error:](#ff3300) [Sintaxis incorrecto. Uso: %1%](#ff7e5e)'
-edit_home_title: '\n[Edita los detalles de la casa para](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_home_title_other: '\n[Edita los detalles de la casa de %1%,](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'
-edit_home_options: '\n[[Teletransportarse]](green show_text=&7Teletransportate a esta casa run_command=/huskhomes:home %1%.%2%) [[Eliminar]](red show_text=&7Elimina esta casa run_command=/huskhomes:delhome %1%.%2%) [[Mover]](blue show_text=&7Cambia la ubicación de la casa run_command=/huskhomes:edithome %1%.%2% location)\n[[Renombrar]](yellow show_text=&7Cambia el nombre de esta casa suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Editar Descripción]](gold show_text=&7Cambia la descripción de esta casa suggest_command=/huskhomes:edithome %1%.%2% description )\n'
-edit_home_options_make_public: '\n[[Teletransportarse]](green show_text=&7Teletransportate a esta casa run_command=/huskhomes:home %1%.%2%) [[Eliminar]](red show_text=&7Elimina esta casa run_command=/huskhomes:delhome %1%.%2%) [[Mover]](blue show_text=&7Cambia la ubicación de la casa run_command=/huskhomes:edithome %1%.%2% location)\n[[Renombrar]](yellow show_text=&7Cambia el nombre de esta casa suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Editar Descripción]](gold show_text=&7Cambia la descripción de esta casa suggest_command=/huskhomes:edithome %1%.%2% description ) [[Hacer Pública]](dark_green show_text=&7Haz que esta casa sea pública run_command=/huskhomes:edithome %1%.%2% public)\n'
-edit_home_options_make_private: '\n[[Teletransportarse]](green show_text=&7Teletransportate a esta casa run_command=/huskhomes:home %1%.%2%) [[Eliminar]](red show_text=&7Elimina esta casa run_command=/huskhomes:delhome %1%.%2%) [[Mover]](blue show_text=&7Cambia la ubicación de la casa run_command=/huskhomes:edithome %1%.%2% location)\n[[Renombrar]](yellow show_text=&7Cambia el nombre de esta casa suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Editar Descripción]](gold show_text=&7Cambia la descripción de esta casa suggest_command=/huskhomes:edithome %1%.%2% description ) [[Hacer Privada]](dark_red show_text=&7Haz que tu casa sea privada run_command=/huskhomes:edithome %1%.%2% private)\n'
-edit_home_privacy_private: '• Acceso: ff7e5e&Privado &7(Solo tu puedes usarlo)'
-edit_home_privacy_private_other: '• Acceso: ff7e5e&Privado &7(Solo %1% puede usarlo)'
-edit_home_privacy_public: '• Acceso: &aPúblico &7(Todo el mundo puede usarlo)'
-edit_home_privacy_public_success: '[Se ha abierto al público la casa](#00fb9a) [%1%](#00fb9a bold)[, satisfactoriamente.](#00fb9a)'
-edit_home_privacy_public_success_economy: '[Se ha abierto al público la casa,](#00fb9a) [%1%](#00fb9a bold)[, satisfactoriamente por %2%.](#00fb9a)'
-edit_home_privacy_private_success: '[La casa](#00fb9a) [%1%](#00fb9a bold)[ha sido establecida como privada](#00fb9a)'
-error_edit_home_privacy_already_public: '[Error:](#ff3300) [Esta casa ya está establecida como pública .](#ff7e5e)'
-error_edit_home_privacy_already_private: '[Error:](#ff3300) [Esta casa ya está establecida como privada.](#ff7e5e)'
-error_edit_home_privacy_no_permission: '[Error:](#ff3300) [No tienes permiso para hacer las casas públicas.](#ff7e5e)'
-error_edit_home_description_length: '[Error:](#ff3300) [La descripción de la casa tiene que tener como máximo 255 caracteres de longitud.](#ff7e5e)'
-error_edit_home_description_characters: '[Error:](#ff3300) [La descripción de la casa solo puede contener caracteres alfanuméricos (A-Z, 0-9), guiones (-) y guiones bajos (_)](#ff7e5e)'
-edit_home_update_location: '[La casa](#00fb9a) [%1%](#00fb9a bold) [ha sido reubicada a tu posición actual.](#00fb9a)'
-edit_home_update_description: '[La descripción de la casa ha sido cambiada de](#00fb9a) [%1%](#00fb9a bold) [a "%2%"](#00fb9a)'
-edit_home_update_name: '[Has cambiado el nombre de tu casa satisfactoriamente: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_warp_title: '\n[Edita detalles del warp](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_warp_options: '\n[[Teletransportarse]](green show_text=&7Teletransportate a este warp run_command=/huskhomes:warp %1%) [[Eliminar]](red show_text=&7Elimina este warp run_command=/huskhomes:delwarp %1%) [[Mover]](blue show_text=&7Cambia la ubicación del warp run_command=/huskhomes:editwarp %1% location)\n[[Renombrar]](yellow show_text=&7Cambia el nombre de este warp suggest_command=/huskhomes:editwarp %1% rename ) [[Editar Descripción]](gold show_text=&7Cambia la descripción de este warp suggest_command=/huskhomes:editwarp %1% description )\n'
-error_edit_warp_description_length: '[Error:](#ff3300) [La descripción del warp tiene que tener como máximo 255 caracteres de longitud.](#ff7e5e)'
-error_edit_warp_description_characters: '[Error:](#ff3300) [La descripción del warp solo puede contener caracteres alfanuméricos (A-Z, 0-9), guiones (-) y guiones bajos (_)](#ff7e5e)'
-edit_warp_update_location: '[El warp](#00fb9a) [%1%](#00fb9a bold) [ha sido reubicado a tu posición actual.](#00fb9a)'
-edit_warp_update_description: '[La descripción de la casa ha sido cambiada de](#00fb9a) [%1%](#00fb9a bold) [a "%2%".](#00fb9a)'
-edit_warp_update_name: '[Has cambiado el nombre del warp satisfactoriamente: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_description: '• Descripción: &7%1%'
-edit_location: '• Ubicación: &7%1%, %2%, %3%'
-edit_world: '• Mundo: &7%1%'
-edit_server: '• Servidor: &7%1%'
-edit_timestamp: '• Crado: &7%1%'
-error_no_homes_set: '[Error:](#ff3300) [Aún no has establecido ninguna casa!](#ff7e5e)'
-error_no_public_homes_set: '[Error:](#ff3300) [No hay ninguna casa pública establecida!](#ff7e5e)'
-error_no_warps_set: '[Error:](#ff3300) [No hay warps establecidos!](#ff7e5e)'
-private_home_list_page_top: '\n[Casas de %1%:](#00fb9a) [(](#00fb9a)[%2%-%3%](#00fb9a bold) [de](#00fb9a) [%4%](#00fb9a bold)[)](#00fb9a)\n'
-public_home_list_page_top: '\n[Casas públicas:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-warp_list_page_top: '\n[Warps:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-error_public_home_invalid: '[Error:](#ff3300) [No se ha podido encontrar una casa pública de %1% llamada %2%.](#ff7e5e)'
-error_set_home_invalid_characters: '[Error:](#ff3300) [Los nombres de las casas deben ser alfanuméricos (A-Z, 0-9, -_)](#ff7e5e)'
-error_set_home_invalid_length: '[Error:](#ff3300) [Los nombres de las casas solo pueden contener hasta 16 caracteres!](#ff7e5e)'
-error_set_warp_invalid_characters: '[Error:](#ff3300) [Los nombres de los warps solo pueden ser alfanuméricos (A-Z,0-9, -_)](#ff7e5e)'
-error_set_warp_invalid_length: '[Error:](#ff3300) [Los nombres de los warps solo pueden contener hasta 16 caracteres!](#ff7e5e)'
-error_set_home_maximum_homes: '[Error:](#ff3300) [Puedes establecer un máximo de %1% casas!](#ff7e5e)'
-error_insufficient_funds: '[Error:](#ff3300) [No tienes suficiente dinero! (Precio: %1%)](#ff7e5e)'
-set_home_spent_money: '[Has gastado %1% para establecer una casa adicional!](gray)'
-set_home_used_free_slots: '[Has establecido todas tus casas gratis (%1%); establecer más casas costará %2% cada una.](gray)'
-set_home_success: '[Se ha establecido con éxito una nueva casa llamada](#00fb9a) [%1%](#00fb9a bold)'
-set_warp_success: '[Se ha establecido con éxito un nuevo warp llamada](#00fb9a) [%1%](#00fb9a bold)'
-error_set_home_name_taken: '[Error:](#ff3300) [Ya tienes una casa con ese nombre.](#ff7e5e)'
-error_set_warp_name_taken: '[Error:](#ff3300) [Ya existe un warp con ese nombre.](#ff7e5e)'
-set_spawn_success: '[La posición de aparición de este servidor ha sido establecida a tu ubicación actual.](#00fb9a)'
-error_spawn_undefined: '[Error:](#ff3300) [No hay una posición de aparición establecida en este servidor.](#ff7e5e)'
-error_tpa_no_pending_request: '[Error:](#ff3300) [No tienes ninguna solicitud de teletransporte pendiente.](#ff7e5e)'
-error_tpa_request_expired: '[Error:](#ff3300) [Tu solicitud de teletransporte pendiente ha caducado.](#ff7e5e)'
-error_player_not_found: '[Error:](#ff3300) [No se ha podido encontrar al jugador %1%.](#ff7e5e)'
-return_by_death: '[Quieres regresar a donde moriste?](gray) [/back](#00fb9a show_text=fb9a&Click para regresar al punto en el que moriste run_command=/back)'
-teleport_request_options: '[Click en una opción:](gray) [[Aceptar]](#00fb9a show_text=fb9a&Acepta la solicitud de teletransporte; /tpaccept %1% run_command=/tpaccept %1%) [•](gray) [[Rechazar]](#ff7e5e show_text=ff7e5e&Rechaza la solicitud de teletransporte; /tpdeny %1% run_command=/tpdeny %1%)'
-tpa_you_accepted: '[Has rechazado la solicitud de teletransporte de %1%] (#00fb9a)'
-tpa_you_declined: '[Has rechazado la solicitud de teletransporte de %1%] (#ff7e5e)'
-tpa_has_accepted: '[%1% ha aceptado tu solicitud de teletransporte](#00fb9a)'
-tpa_has_declined: '[%1% ha rechazado tu solicitud de teletransporte](#ff7e5e)'
-tpa_request_sent: '[Has enviado una solicitud para teletransportarte a](#00fb9a) [%1%](#00fb9a bold)'
-tpa_request_ask: '[%1%](#00fb9a bold) [ha enviado una solicitud para teletransportarse a ti](#00fb9a)'
-tpahere_request_sent: '[Has enviado una solicitud de teletransporte pidiendo a](#00fb9a) [%1%](#00fb9a bold) [que se teletransporte a ti](#00fb9a)'
-tpahere_request_ask: '[%1%](#00fb9a bold) [ha solicitado que te teletransportes a el](#00fb9a)'
-error_tp_self: '[Error:](#ff3300) [No puedes teletransportarte a ti mismo!](#ff7e5e)'
-error_rtp_invalid_dimension: '[Error:](#ff3300) [Solo puedes teletransportarte aleatoriamente en el mundo normal!](#ff7e5e)'
-error_rtp_cooldown: '[Error:](#ff3300) [Debes esperar %1% minutos antes de volver a teletransportarte a una ubicación aleatoria.](#ff7e5e)'
-rtp_spent_money: '[Gasta %1% para teletransportarte a un lugar aleatorio.](gray)'
-back_spent_money: '[Gasta %1% para volver a tu última ubicación.](gray)'
-error_command_disabled: '[Error:](#ff3300) [Ese comando está desactivado!](#ff7e5e)'
-error_console_only: '[Error:](#ff3300) [Ese comando solo puede ser ejecutado por la consola.](#ff7e5e)'
-error_tp_invalid_world: '[Error:](#ff3300) [Por favor, especifica un mundo de servidor válido.](#ff7e5e)'
-error_rtp_randomization_timeout: '[Error:](#ff3300) [Ha habido un problema al encontrar una localización segura a la que teletransportarte aleatoriamente.](#ff7e5e)'
-list_item_divider: ' [•](gray) '
-home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)'
-public_home_list_item: '[[%1%]](show_text=fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
-warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
-home_default_description: 'Casa de %1%'
-warp_default_description: 'Un warp de acceso público'
-delete_all_homes_confirm: '[Advertencia:](#ff3300) [Estás seguro de que quieres borrar todas tus casas?](#ff7e5e)\n[Una vez confirmado, no será posible recuperarlas.](gray)\n[→](gray) [[Confirmar]] (#ff3300 show_text=ff3300&Click para confirmar. Esta acción es permanente. run_command=/delhome all confirm)'
-delete_all_warps_confirm: '[Advertencia:](#ff3300) [Estás seguro de que quieres borrar todos los warps?] (#ff7e5e)\n[Una vez confirmado, no será posible recuperarlos.](gray)\n[→](gray) [[Confirmar]](#ff3300 show_text=ff3300&Click para confirmar. Esta acción es permanente. run_command=/delwarp all confirm)'
-delete_all_homes_success: '[Has eliminado todas tus casas satisfactoriamente](#00fb9a) [%1%](#00fb9a bold) [.](#00fb9a)'
-delete_all_warps_success: '[Se han eliminado todos los warps del servidor](#00fb9a) [%1%](#00fb9a bold) .](#00fb9a)'
-error_permission_restricted_warp: '[Error:](#ff3300) [No tienes permiso para ir al warp %1%!](#ff7e5e)'
-teleporting_complete_console: '[La consola te ha teletransportado a %1%.](gray)'
-spawn_warp_default_description: 'El /spawn del servidor'
-error_invalid_page_number: '[Error:](#ff3300) [Por favor, especifica un número de página válido.](#ff7e5e)'
-page_options: '[←](gray show_text=&7Página anterior run_command=%1%) [Viewing Page %2%/%3%](#00fb9a) [→](gray show_text=&7Página siguiente run_command=%4%)'
-page_options_min: '[Página %1%/%2%](#00fb9a) [→](gray show_text=&7Página Siguiente run_command=%3%)'
-page_options_min_max: '[Página %1%/%2%](#00fb9a)'
-page_options_max: '[←](gray show_text=&7Página Anterior run_command=%1%) [Página %2%/%3%](#00fb9a)'
-page_no_items: '[(No hay ningún item para mostrar en esta página)](gray show_text=&7Prueba en otra página)'
-command_list_header: '\n[](#00fb9a bold) [Lista de Comandos](#00fb9a)'
-command_list_item: '[/%1%](#00fb9a show_text=fb9a&%2% suggest_command=/%1%) [•](white) [%3%](gray)'
-error_invalid_on_arrival: '[Error:](#ff3300) [Ha habido un error al completar tu teletransporte. Inténtalo de nuevo más tarde.](#ff7e5e)'
-tpignore_toggle_on: '[Ahora estás](#00fb9a) [ignorando](#00fb9a bold) [las solicitudes de teletransporte entrantes.](#00fb9a) [(Click to cambiar)](gray show_text=&7Click para recibir solicitudes de teletransporte run_command=/huskhomes:tpignore)'
-tpignore_toggle_off: '[Ahora](#00fb9a) [recibirás](#00fb9a bold) [todas las solicitudes de teletransporte entrantes.](#00fb9a) [(Click para cambiar)](gray show_text=&7Click para ignorar solicitudes de teletransporte entrantes run_command=/huskhomes:tpignore)'
-tpignore_on_reminder: '[Actualmente estás ignorando las solicitudes de teletransporte entrantes!](gray) [(Click para cambiar)](gray show_text=&7Click para recibir solicitudes de teletransporte entrantes run_command=/huskhomes:tpignore)'
-error_ignoring_teleport_requests: '[Error:](#ff3300) [Actualmetne estás ignorando las solicitudes de teletransporte!](#ff7e5e) [(Click para cambiar)](#ff7e5e show_text=ff7e5e&Click para recibir solicitudes de teletransporte entrantes run_command=/huskhomes:tpignore)'
-error_no_offline_position: '[Error:](#ff3300) [No se ha podido encontrar donde %1% se ha conectado por última vez.](#ff7e5e)'
-error_invalid_player: '[Error:](#ff3300) [Por favor, especifica el nombre de un jugador válido!](#ff7e5e)'
-error_no_homes_set_other: '[Error:](#ff3300) [%1% no tiene ninguna casa!](#ff7e5e)'
-error_home_invalid_other: '[Error:](#ff3300) [%1% no tiene ninguna casa llamada "%2%"](#ff7e5e)'
-error_edit_home_maximum_public_homes: '[Error:](#ff3300) [Solo puedes tener %1% casas públicas.](#ff7e5e)'
-tpaall_request_sent: '[Has enviado una solicitud de teletransporte a todo el mundo para que se teletransporten a ti!](#00fb9a)'
-error_no_other_online_players: '[Error:](#ff3300) [No hay jugadores conectados que puedan teletransportarse a ti.](#ff7e5e)'
-teleporting_all_players: '[Teletransportando a todos los jugadores a tu posición...](#00fb9a)'
-error_illegal_target_coordinates: '[Error:](#ff3300) [Aborted teleport as it exceeds the possible game world limits.](#ff7e5e)'
-home_command_description: 'Teletransportate a una de tus casas'
-sethome_command_description: 'Establece una casa con el nombre dado'
-delhome_command_description: 'Elimina una casa establecida previamente'
-edithome_command_description: 'Edita una de tus casas'
-warp_command_description: 'Teletransportate a un warp'
-setwarp_command_description: 'Establece un warp con el nombre dado'
-delwarp_command_description: 'Elimina un warp'
-editwarp_command_description: 'Edita un warp'
-back_command_description: 'Regresa a tu posición anterior o donde moriste'
-homelist_command_description: 'Muestra una lista de tus casas'
-warplist_command_description: 'Muestra la lista de warps'
-publichomelist_command_description: 'Muestra la lista de casas públicas'
-publichome_command_description: 'Teletransporteate a una casa pública'
-tp_command_description: 'Teletransportate a otro jugador o localización'
-tphere_command_description: 'Teletransporta a otro jugador a ti'
-tpa_command_description: 'Solicita a otro jugador teletransporte'
-tpahere_command_description: 'Solicita a otro jugador que se teletransporte a ti'
-tpaccept_command_description: 'Acepta una solicitud de teletransporte'
-tpdeny_command_description: 'Deniega una solicitud de teletransporte'
-tpignore_command_description: 'Ignora las solicitudes de teletransporte entrantes'
-tpoffline_command_description: 'Teletransportate a la última ubicación de un jugador'
-rtp_command_description: 'Teletransportate aleatoriamente'
-spawn_command_description: 'Teletransportate al spawn'
-setspawn_command_description: 'Establece una posición de spawn'
-tpaall_command_description: 'Solicita a todo el mundo que te teletransporten a ti'
-tpall_command_description: 'Teletransporta a todo el mundo a tu ubicación'
-huskhomes_command_description: 'Muestra la información del plugin y recarga la configuración'
\ No newline at end of file
diff --git a/src/main/resources/languages/it-it.yml b/src/main/resources/languages/it-it.yml
deleted file mode 100644
index be8bcbc4..00000000
--- a/src/main/resources/languages/it-it.yml
+++ /dev/null
@@ -1,153 +0,0 @@
-error_no_permission: '[Errore:](#ff3300) [Non hai il permesso di eseguire questo comando.](#ff7e5e)'
-error_no_last_position: '[Errore:](#ff3300) [Non hai nessuna posizione precedente salvata!](#ff7e5e)'
-teleporting_last_position: '[Teletrasporto alla posizione precedente tra](#00fb9a) [%1%](#00fb9a bold) [secondi](#00fb9a)'
-teleporting_offline_player: '[Teletrasporto alla posizione in cui %1% è uscito l''ultima volta in corso...](#00fb9a)'
-teleporting_countdown_start: '[Verrai teletrasportato tra](#00fb9a) [%1%](#00fb9a bold) [secondi](#00fb9a)'
-teleporting_cancelled_movement: '[Teletrasporto cancellato: ti sei mosso!](#ff7e5e)'
-teleporting_cancelled_damage: '[Teletrasporto cancellato: hai preso danno!](#ff7e5e)'
-teleporting_complete: '[Teletrasporto completato!](#00fb9a)'
-teleporting_action_bar_countdown: '[Teletrasporto tra](#00fb9a) [%1%](#00fb9a bold) [secondi...](#00fb9a)'
-teleporting_action_bar_cancelled: '[Teletrasporto cancellato!](#ff7e5e)'
-teleporting_please_stand_still: '[Il teletrasporto verrà cancellato se ti muoverai o prenderai danno.](gray)'
-home_deleted: '[Hai cancellato la home:](#00fb9a) [%1%](#00fb9a bold)'
-warp_deleted: '[Hai cancellato il warp:](#00fb9a) [%1%](#00fb9a bold)'
-error_home_invalid: '[Errore:](#ff3300) [Non hai nessuna home chiamata "%1%"](#ff7e5e)'
-error_warp_invalid: '[Errore:](#ff3300) [Non esiste nessun warp chiamato "%1%"](#ff7e5e)'
-error_invalid_syntax: '[Errore:](#ff3300) [Comando non riconosciuto. Utilizza: %1%](#ff7e5e)'
-edit_home_title: '\n[Modifica della home](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_home_title_other: '\n[Modificando la home di %1%,](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'
-edit_home_options: '\n[[Teletrasporto]](green show_text=&7Teletrasportati alla tua home run_command=/huskhomes:home %1%.%2%) [[Cancella]](red show_text=&7Cancella la tua home run_command=/huskhomes:delhome %1%.%2%) [[Riposiziona]](blue show_text=&7Aggiorna le coordinate della tua home run_command=/huskhomes:edithome %1%.%2% location)\n[[Rinomina]](yellow show_text=&7Cambia il nome della tua home suggest_command=/huskhomes:edithome %1%.%2% tua home suggest_command=/huskhomes:edithome %1%.%2% description )\n'
-edit_home_options_make_public: '\n[[Teletrasporto]](green show_text=&7Teletrasportati alla tua home run_command=/huskhomes:home %1%.%2%) [[Cancella]](red show_text=&7Cancella la tua home run_command=/huskhomes:delhome %1%.%2%) [[Riposiziona]](blue show_text=&7Aggiorna le coordinate della tua home run_command=/huskhomes:edithome %1%.%2% location)\n[[Rinomina]](yellow show_text=&7Cambia il nome della tua home suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Modifica Descrizione]](gold show_text=&7Aggiorna la descrizione della tua home suggest_command=/huskhomes:edithome %1%.%2% description ) [[Rendi Pubblica]](dark_green show_text=&7Rendi la tua home pubblica run_command=/huskhomes:edithome %1%.%2% public)\n'
-edit_home_options_make_private: '\n[[Teletrasporto]](green show_text=&7Teletrasportati alla tua home run_command=/huskhomes:home %1%.%2%) [[Cancella]](red show_text=&7Cancella la tua home run_command=/huskhomes:delhome %1%.%2%) [[Riposiziona]](blue show_text=&7Aggiorna le coordinate della tua home run_command=/huskhomes:edithome %1%.%2% location)\n[[Rinomina]](yellow show_text=&7Cambia il nome della tua home suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Modifica Descrizione]](gold show_text=&7Aggiorna la descrizione della tua home suggest_command=/huskhomes:edithome %1%.%2% description ) [[Rendi Privata]](dark_red show_text=&7Rendi la tua home privata run_command=/huskhomes:edithome %1%.%2% private)\n'
-edit_home_privacy_private: '• Accesso: ff7e5e&Privata &7(Solo tu puoi usarla)'
-edit_home_privacy_public: '• Accesso: &aPubblica &7(Tutti possono usarla)'
-edit_home_privacy_public_success: '[Hai impostato la privacy della tua home](#00fb9a) [%1%](#00fb9a bold) [come pubblica.](#00fb9a)'
-edit_home_privacy_public_success_economy: '[Hai impostato la privacy della tua home](#00fb9a) [%1%](#00fb9a bold) [come pubblica. Il costo di accesso sarà: %2%.](#00fb9a)'
-edit_home_privacy_private_success: '[Hai impostato la privacy della tua home](#00fb9a) [%1%](#00fb9a bold) [come privata.](#00fb9a)'
-error_edit_home_privacy_already_public: '[Errore:](#ff3300) [La tua home è già pubblica.](#ff7e5e)'
-error_edit_home_privacy_already_private: '[Errore:](#ff3300) [La tua home è già privata.](#ff7e5e)'
-error_edit_home_privacy_no_permission: '[Errore:](#ff3300) [Non hai il permesso di impostare la privacy della tua home.](#ff7e5e)'
-error_edit_home_description_length: '[Errore:](#ff3300) [Le descrizioni delle home devono essere inferiori ai 255 caratteri.](#ff7e5e)'
-error_edit_home_description_characters: '[Errore:](#ff3300) [Le descrizioni delle home possono contenere solo caratteri alfanumerici, numeri (A-Z, 0-9), trattini (-) e trattini bassi (_)](#ff7e5e)'
-edit_home_update_location: '[Hai riposizionato la home](#00fb9a) [%1%](#00fb9a bold) [nella tua posizione corrente.](#00fb9a)'
-edit_home_update_description: '[Hai cambiato la descrizione di](#00fb9a) [%1%](#00fb9a bold) [in "%2%"](#00fb9a)'
-edit_home_update_name: '[Hai cambiato il nome della tua home: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_warp_title: '\n[Modifica dettagli del warp](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_warp_options: '\n[[Teletrasporto]](green show_text=&7Teletrasportati al warp run_command=/huskhomes:warp %1%) [[Cancella]](red show_text=&7Cancella il warp run_command=/huskhomes:delwarp %1%) [[Riposiziona]](blue show_text=&7Aggiorna le coordinate del warp run_command=/huskhomes:editwarp %1% location)\n[[Rinomina]](yellow show_text=&7Cambia il nome del warp suggest_command=/huskhomes:editwarp %1% rename ) [[Modifica Descrizione]](gold show_text=&7Aggiorna la descrizione del warp suggest_command=/huskhomes:editwarp %1% description )\n'
-error_edit_warp_description_length: '[Errore:](#ff3300) [Le descrizioni dei warp devono essere inferiori ai 255 caratteri.](#ff7e5e)'
-error_edit_warp_description_characters: '[Errore:](#ff3300) [Le descrizioni dei warp possono contenere solo caratteri alfanumerici, numeri (A-Z, 0-9), trattini (-) e trattini bassi (_)](#ff7e5e)'
-edit_warp_update_location: '[Riposizionato il warp](#00fb9a) [%1%](#00fb9a bold) [alla tua posizione attuale.](#00fb9a)'
-edit_warp_update_description: '[Cambiata la descrizione del warp](#00fb9a) [%1%](#00fb9a bold) [to "%2%".](#00fb9a)'
-edit_warp_update_name: '[Cambiato con successo il nome del warp: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_description: '• Descrizione: &7%1%'
-edit_location: '• Posizione: &7%1%, %2%, %3%'
-edit_world: '• Mondo: &7%1%'
-edit_server: '• Server: &7%1%'
-edit_timestamp: '• Creata: &7%1%'
-error_no_homes_set: '[Errore:](#ff3300) [Non hai impostato nessuna home! Scegli un luogo sicuro e digita /sethome ](#ff7e5e)'
-error_no_public_homes_set: '[Errore:](#ff3300) [Non ci sono home pubbliche!](#ff7e5e)'
-error_no_warps_set: '[Errore:](#ff3300) [Non esiste alcun warp!](#ff7e5e)'
-private_home_list_page_top: '\n[Home di %1%:](#00fb9a) [(](#00fb9a)[%2%-%3%](#00fb9a bold) [di](#00fb9a) [%4%](#00fb9a bold)[)](#00fb9a)\n'
-public_home_list_page_top: '\n[Home pubbliche:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [di](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-warp_list_page_top: '\n[Warp:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [di](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-error_public_home_invalid: '[Errore:](#ff3300) [Non trovo la home di %1% chiamata %2%.](#ff7e5e)'
-error_set_home_invalid_characters: '[Errore:](#ff3300) [I nomi delle home possono contenere solo caratteri alfanumerici (A-Z, 0-9) e trattini (-_)](#ff7e5e)'
-error_set_home_invalid_length: '[Errore:](#ff3300) [I nomi delle home non possono essere lunghi più di 16 caratteri!](#ff7e5e)'
-error_set_warp_invalid_characters: '[Errore:](#ff3300) [I nomi dei warp possono contenere solo caratteri alfanumerici (A-Z, 0-9) e trattini (-_)](#ff7e5e)'
-error_set_warp_invalid_length: '[Errore:](#ff3300) [I nomi dei warp non possono essere più lunghi di 16 caratteri!](#ff7e5e)'
-error_set_home_maximum_homes: '[Errore:](#ff3300) [Puoi impostare un massimo di %1% home!](#ff7e5e)'
-error_insufficient_funds: '[Errore:](#ff3300) [Non hai abbastanza soldi! (Costo: %1%)](#ff7e5e)'
-set_home_spent_money: '[Hai pagato %1% per impostare una nuova home!](gray)'
-set_home_used_free_slots: '[Hai utilizzato tutte le slot delle home gratuite (%1%); se vuoi impostare una nuova home, dovrai pagare %2%.](gray)'
-set_home_success: '[Hai impostato la home:](#00fb9a) [%1%](#00fb9a bold)'
-set_warp_success: '[Hai impostato il warp:](#00fb9a) [%1%](#00fb9a bold)'
-error_set_home_name_taken: '[Errore:](#ff3300) [Hai già una home impostata con quel nome.](#ff7e5e)'
-error_set_warp_name_taken: '[Errore:](#ff3300) [C’’è già un warp impostato con quel nome.](#ff7e5e)'
-set_spawn_success: '[Hai reimpostato la posizione di /spawn.](#00fb9a)'
-error_spawn_undefined: '[Errore:](#ff3300) [Non c’’è nessun punto di spawn impostato.](#ff7e5e)'
-error_tpa_no_pending_request: '[Errore:](#ff3300) [Non hai una richiesta di teletrasporto in sospeso.](#ff7e5e)'
-error_tpa_request_expired: '[Errore:](#ff3300) [La tua richiesta di teletrasporto è scaduta.](#ff7e5e)'
-error_player_not_found: '[Errore:](#ff3300) [Non trovo il giocatore: %1%.](#ff7e5e)'
-return_by_death: '[Torna dove sei morto.](gray) [/back](#00fb9a show_text=fb9a&Clicca per tornare al tuo punto di morte run_command=/back)'
-teleport_request_options: '[Scegli se:](gray) [[Accettare]](#00fb9a show_text=fb9a&Accetta la richiesta; /tpaccept %1% run_command=/tpaccept %1%) [•](gray) [[Rifiutare]](#ff7e5e show_text=ff7e5e&Declina la richiesta; /tpdeny %1% run_command=/tpdeny %1%)'
-tpa_you_accepted: '[Hai accettato la richiesta di teletrasporto di %1%](#00fb9a)'
-tpa_you_declined: '[Hai rifiutato la richiesta di teletrasporto di %1%](#ff7e5e)'
-tpa_has_accepted: '[%1% ha accettato la tua richiesta di teletrasporto.](#00fb9a)'
-tpa_has_declined: '[%1% ha declinato la tua richiesta di teletrasporto.](#ff7e5e)'
-tpa_request_sent: '[Hai inviato una richiesta di teletrasporto a](#00fb9a) [%1%](#00fb9a bold)'
-tpa_request_ask: '[%1%](#00fb9a bold) [ha richiesto di teletrasportarsi da te.](#00fb9a)'
-tpahere_request_sent: '[Hai chiesto a](#00fb9a) [%1%](#00fb9a bold) [di teletrasportarsi da te.](#00fb9a)'
-tpahere_request_ask: '[%1%](#00fb9a bold) [ha richiesto di teletrasportarsi da lui.](#00fb9a)'
-error_tp_self: '[Errore:](#ff3300) [Non puoi teletrasportarti da te stesso!](#ff7e5e)'
-error_rtp_invalid_dimension: '[Errore:](#ff3300) [Puoi utilizzare l’’/rtp solo nell’’overworld!](#ff7e5e)'
-error_rtp_cooldown: '[Errore:](#ff3300) [Devi aspettare %1% minuti prima di utilizzare nuovamente l’’/rtp.](#ff7e5e)'
-rtp_spent_money: '[Hai speso %1% per teletrasportati randomicamente.](gray)'
-back_spent_money: '[Hai speso %1% per teletrasportati alla tua posizione precedente.](gray)'
-error_command_disabled: '[Errore:](#ff3300) [Questo comando è disabilitato!](#ff7e5e)'
-error_console_only: '[Errore:](#ff3300) [Quel comando può essere eseguito solo da Console.](#ff7e5e)'
-error_tp_invalid_world: '[Errore:](#ff3300) [Per favore, specifica un mondo valido nel server.](#ff7e5e)'
-error_rtp_randomization_timeout: '[Errore:](#ff3300) [Non sono riuscito a trovare una posizione sicura, riprova.](#ff7e5e)'
-list_item_divider: ' [•](gray) '
-home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)'
-public_home_list_item: '[[%1%]](show_text=fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
-warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
-home_default_description: 'Home di %1%'
-warp_default_description: 'Warp accessibile a tutti!'
-delete_all_homes_confirm: '[Attenzione:](#ff3300) [Sei sicuro di voler eliminare tutte le home?](#ff7e5e\n[Una volta confermato non sarà possibile recuperarli.](gray)\n[→](gray) [[Conferma]](#ff3300 show_text=ff3300&Clicca per confermare. AZIONE IRREVERSIBILE. run_command=/delhome all confirm)'
-delete_all_warps_confirm: '[Attenzione:](#ff3300) [Sei sicuro di voler eliminare tutti i warp?](#ff7e5e)\n[Una volta confermato non sarà possibile recuperarli.](gray)\n[→](gray) [[Conferma]](#ff3300 show_text=ff3300&Clicca per confermare. AZIONE IRREVERSIBILE. run_command=/delwarp all confirm)'
-delete_all_homes_success: '[Eliminata con successo la](#00fb9a) [%1%](#00fb9a bold) [home.](#00fb9a)'
-delete_all_warps_success: '[Eliminati con successo tutti i](#00fb9a) [%1%](#00fb9a bold) [warp.](#00fb9a)'
-error_permission_restricted_warp: '[Errore:](#ff3300) [Non hai i permessi per usare il warp %1%!](#ff7e5e)'
-teleporting_complete_console: '[La console ti ha teletrasportato a %1%.](gray)'
-spawn_warp_default_description: 'La posizione di /spawn del server'
-error_invalid_page_number: '[Errore:](#ff3300) [Specifica un numero di pagina corretto.](#ff7e5e)'
-page_options: '[←](gray show_text=&7Pagina precedente run_command=%1%) [Pagina %2%/%3%](#00fb9a) [→](gray show_text=&7Pagina successiva run_command=%4%)'
-page_options_min: '[Pagina %1%/%2%](#00fb9a) [→](gray show_text=&7Pagina successiva run_command=%3%)'
-page_options_min_max: '[Pagina %1%/%2%](#00fb9a)'
-page_options_max: '[←](gray show_text=&7Pagina precedente run_command=%1%) [Pagina %2%/%3%](#00fb9a)'
-page_no_items: '[(Nessun oggetto visibile in questa pagina)](gray show_text=&7Prova un numero differente)'
-command_list_header: '\n[HuskHomes](#00fb9a bold) [| Comandi](#00fb9a)'
-command_list_item: '[/%1%](#00fb9a show_text=fb9a&%2% suggest_command=/%1%) [•](white) [%3%](gray)'
-error_invalid_on_arrival: '[Errore:](#ff3300) [Non sono riuscito a teletrasportarti perché il mondo non è caricato correttamente.](#ff7e5e)'
-tpignore_toggle_on: '[Ora stai](#00fb9a) [ignorando](#00fb9a bold) [tutte le richieste di teletrasporto.](#00fb9a) [(Clicca per abilitarle)](gray show_text=&7Clicca per abilitare le richieste di teletrasporto run_command=/huskhomes:tpignore)'
-tpignore_toggle_off: '[Ora stai](#00fb9a) [ricevendo](#00fb9a bold) [tutte le richieste di teletrasporto.](#00fb9a) [(Clicca per disabilitarle)](gray show_text=&7Clicca per disabilitare le richieste di teletrasporto run_command=/huskhomes:tpignore)'
-tpignore_on_reminder: '[Le richieste di teletrasporto sono disabilitate!](gray) [(Clicca per abilitarle)](gray show_text=&7Clicca per abilitare le richieste di teletrasporto run_command=/huskhomes:tpignore)'
-error_ignoring_teleport_requests: '[Errore:](#ff3300) [Le richieste di teletrasporto sono disabilitate!](#ff7e5e) [(Clicca per abilitarle)](#ff7e5e show_text=ff7e5e&Clicca per abilitare le richieste di teletrasporto run_command=/huskhomes:tpignore)'
-error_no_offline_position: '[Errore:](#ff3300) [Non trovo la posizione in cui %1% è sloggato l''ultima volta.](#ff7e5e)'
-error_invalid_player: '[Errore:](#ff3300) [Specifica un nome valido!](#ff7e5e)'
-error_no_homes_set_other: '[Errore:](#ff3300) [%1% non ha nessuna home!](#ff7e5e)'
-error_home_invalid_other: '[Errore:](#ff3300) [%1% non ha una home chiamata "%2%"](#ff7e5e)'
-home_deleted_other: '[Hai cancellato la home](#00fb9a)[%2%](#00fb9a bold)[di %1%](#00fb9a) '
-edit_home_privacy_private_other: '• Accesso: ff7e5e&Privato &7(Solo %1% può usarla)'
-error_edit_home_maximum_public_homes: '[Errore:](#ff3300) [Puoi creare un messimo di %1% home pubbliche.](#ff7e5e)'
-tpaall_request_sent: '[Hai mandato una richiesta di teletrasporto a tutti chiedendogli di teletrasportarsi da te.](#00fb9a)'
-error_no_other_online_players: '[Errore:](#ff3300) [Non ci sono altri giocatori online che potrebbero teletrasportarsi da te.](#ff7e5e)'
-teleporting_all_players: '[Stai teletrasportando tutti i giocatori alla tua posizione...](#00fb9a)'
-error_illegal_target_coordinates: '[Errore:](#ff3300) [Teletrasporto interrotto perché supera i limiti possibili del mondo di gioco.](#ff7e5e)'
-home_command_description: 'Teletrasportati in una delle tue home'
-sethome_command_description: 'Crea un nuova home col nome dato'
-delhome_command_description: 'Cancella una delle tue home'
-edithome_command_description: 'Modifica una delle tue home'
-warp_command_description: 'Teletrasportati in un warp'
-setwarp_command_description: 'Crea un nuovo warp col nome dato'
-delwarp_command_description: 'Cancella un warp'
-editwarp_command_description: 'Modifica un warp'
-back_command_description: 'Ritorna in una tua posizione precedente, o dove sei morto.'
-homelist_command_description: 'Ricevi una lista delle tue home'
-warplist_command_description: 'Ricevi una lista dei warp esistenti'
-publichomelist_command_description: 'Ricevi una lista delle home pubbliche'
-publichome_command_description: 'Teletrasportati in una home pubblica'
-tp_command_description: 'Teletrasportati nella posizione di un altro giocatore'
-tphere_command_description: 'Teletrasporta un altro giocatore da te'
-tpa_command_description: 'Richiedi ad un altro giocatore di teletrasportarti da lui'
-tpahere_command_description: 'Richiedi ad un altro giocatore di teletrasportarsi da te'
-tpaccept_command_description: 'Accetta una richiesta di teletrasporto'
-tpdeny_command_description: 'Rifiuta una richiesta di teletrasporto'
-tpignore_command_description: 'Ignora le richieste di teletrasporto in arrivo'
-tpoffline_command_description: 'Teletrasportati nella posizione in cui un giocatore è uscito dal server'
-rtp_command_description: 'Teletrasportati in una posizione a caso'
-spawn_command_description: 'Teletrasportati allo spawn'
-setspawn_command_description: 'Setta la posizione di spawn'
-tpaall_command_description: 'Richiedi a tutti i giocatori di teletrasportarsi da te'
-tpall_command_description: 'Teletrasporta tutti i giocatori alla tua posizione'
-huskhomes_command_description: 'Vedi le informazioni del plugin & ricarica la configurazione'
\ No newline at end of file
diff --git a/src/main/resources/languages/pl.yml b/src/main/resources/languages/pl.yml
deleted file mode 100644
index e15d14d4..00000000
--- a/src/main/resources/languages/pl.yml
+++ /dev/null
@@ -1,153 +0,0 @@
-error_no_permission: '[Błąd:](#ff3300) [Nie masz uprawnień do tego polecenia.](#ff7e5e)'
-error_no_last_position: '[Błąd:](#ff3300) [Nie masz żadnej wcześniejszej lokalizacji aby powrócić!](#ff7e5e)'
-teleporting_last_position: '[Powrót do ostatniej pozycji nastąpi w ciągu](#00fb9a) [%1%](#00fb9a bold) [sekund](#00fb9a)'
-teleporting_offline_player: '[Zostałeś przeteleportowany do miejsca gdzie %1% wylogował się](#00fb9a)'
-teleporting_countdown_start: '[Zostaniesz przeteleportowany za](#00fb9a) [%1%](#00fb9a bold) [sekund](#00fb9a)'
-teleporting_cancelled_movement: '[Teleportacja została anulowana!](#ff7e5e)'
-teleporting_cancelled_damage: '[Teleportacja została anulowana, otrzymałeś obrażenia!](#ff7e5e)'
-teleporting_complete: '[Przeteleportowano!](#00fb9a)'
-teleporting_action_bar_countdown: '[Teleportacja w](#00fb9a) [%1%](#00fb9a bold)[...](#00fb9a)'
-teleporting_action_bar_cancelled: '[Teleportacja anulowana!](#ff7e5e)'
-teleporting_please_stand_still: 'Teleportacja zanuluje się gdy się ruszysz.](gray)'
-home_deleted: '[Pomyślnie usunięto dom,](#00fb9a) [%1%](#00fb9a bold)'
-warp_deleted: '[Pomyślnie usunięto warp,](#00fb9a) [%1%](#00fb9a bold)'
-error_home_invalid: '[Błądr:](#ff3300) [Nie masz domu o nazwie "%1%"](#ff7e5e)'
-error_warp_invalid: '[Błąd:](#ff3300) [Nie ma warpu o nazwie "%1%"](#ff7e5e)'
-error_invalid_syntax: '[Błąd:](#ff3300) [Niepoprawna składnia. Wpisz: %1%](#ff7e5e)'
-edit_home_title: '\n[Edytuj właściwości domu](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_home_title_other: '\n[Edit home details for %1%''s home,](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'
-edit_home_options: '\n[[Teleportuj]](green show_text=&Przeteleportuj się do swojego domu run_command=/huskhomes:home %1%.%2%) [[ Usuń]](red show_text=&7Usuń swój dom run_command=/huskhomes:delhome %1%.%2%) [[Relocate]](blue show_text=&7Zaktualizuj lokalizację domu run_command=/huskhomes:edithome %1%.%2% location)\n[[Zmień nazwę]](yellow show_text=&7Zmień nazwe domu suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Edytuj opis]](gold show_text=&7Zaktualizuj opis domu suggest_command=/huskhomes:edithome %1%.%2% description )\n'
-edit_home_options_make_public: '\n[[Teleport]](green show_text=&7Przeteleportuj się do swojego domu run_command=/huskhomes:home %1%.%2%) [[Usuń]](red show_text=&7Usuń swój dom run_command=/huskhomes:delhome %1%.%2%) [[Relocate]](blue show_text=&7Zaktualizuj lokalizację domu run_command=/huskhomes:edithome %1%.%2% location)\n[[Zmień nazwę]](yellow show_text=&7Zmień nazwe domu suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Edytuj opis]](gold show_text=&7Zaktualizuj opis domu suggest_command=/huskhomes:edithome %1%.%2% description ) [[Ustaw jako publiczny]](dark_green show_text=&7Ustaw swój d0m jako publiczny run_command=/huskhomes:edithome %1%.%2% public)\n'
-edit_home_options_make_private: '\n[[Teleport]](green show_text=&7Przeteleportuj się do swojego domu run_command=/huskhomes:home %1%.%2%) [[Usuń]](red show_text=&7Usuń swój dom run_command=/huskhomes:delhome %1%.%2%) [[Relocate]](blue show_text=&7Zaktualizuj lokalizację domu run_command=/huskhomes:edithome %1%.%2% location)\n[[Zmień nazwę]](yellow show_text=&7Zmień nazwe domu suggest_command=/huskhomes:edithome %1%.%2% rename ) [[Edytuj opis]](gold show_text=&7Zaktualizuj opis domu suggest_command=/huskhomes:edithome %1%.%2% description ) [[Ustaw jako prywatny]](dark_red show_text=&7Ustaw swój dom jako prywatny run_command=/huskhomes:edithome %1%.%2% private)\n'
-edit_home_privacy_private: '• Dostęp: ff7e5e&Prywatny &7(Tylko ty możesz go użyć)'
-edit_home_privacy_public: '• Dostęp: &aPubliczny &7(Każdy może go użyć)'
-edit_home_privacy_public_success: '[Pomyślnie utworzono dom,](#00fb9a) [%1%](#00fb9a bold)[, otwórz jako publiczny.](#00fb9a)'
-edit_home_privacy_public_success_economy: '[Pomyślnie utworzono twój dom,](#00fb9a) [%1%](#00fb9a bold)[, otwórz go jako publiczny za %2%.](#00fb9a)'
-edit_home_privacy_private_success: '[Pomyślnie utworzono twój dom,](#00fb9a) [%1%](#00fb9a bold)[, prywanty.](#00fb9a)'
-error_edit_home_privacy_already_public: '[Błąd:](#ff3300) [Twój dom jest już ustawiony jako publiczny.](#ff7e5e)'
-error_edit_home_privacy_already_private: '[Błąd:](#ff3300) [Twój dom jest już ustawiony jako prywatny.](#ff7e5e)'
-error_edit_home_privacy_no_permission: '[Błąd:](#ff3300) [Nie masz uprawnień do tworzenia publicznych domów.](#ff7e5e)'
-error_edit_home_description_length: '[Błąd:](#ff3300) [Opis domu nie może wynieść więcej niż 255 znaków.](#ff7e5e)'
-error_edit_home_description_characters: '[Błąd:](#ff3300) [Opisy domu mogą tylko zawierać litery i cyfty (A-Z, 0-9), myślniki (-) oraz podkreślniki (_)](#ff7e5e)'
-edit_home_update_location: '[Przemieszczenie](#00fb9a) [%1%](#00fb9a bold) [do twojej aktualnej pozycji.](#00fb9a)'
-edit_home_update_description: '[Zmieniono opis na](#00fb9a) [%1%](#00fb9a bold) [to "%2%"](#00fb9a)'
-edit_home_update_name: '[Pomyślnie zmieniono nazwę domu na: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_warp_title: '\n[Edyuj właściwości warpu](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_warp_options: '\n[[Teleport]](green show_text=&7Teleportuj się na ten warp run_command=/huskhomes:warp %1%) [[Usuń]](red show_text=&7Usuń ten warp run_command=/huskhomes:delwarp %1%) [[Relocate]](blue show_text=&7Update this warp''s location run_command=/huskhomes:editwarp %1% location)\n[[Rename]](yellow show_text=&7Change the name of this warp suggest_command=/huskhomes:editwarp %1% rename ) [[Edit Description]](gold show_text=&7Update this warp''s description suggest_command=/huskhomes:editwarp %1% description )\n'
-error_edit_warp_description_length: '[Błąd:](#ff3300) [Opis warpu nie może przekroczyć 255 znaków.](#ff7e5e)'
-error_edit_warp_description_characters: '[Błąd:](#ff3300) [Warp descriptions may only contain alphanumeric (A-Z, 0-9) characters, hyphens (-) and underscores (_)](#ff7e5e)'
-edit_warp_update_location: '[Przemieszczono](#00fb9a) [%1%](#00fb9a bold) [do twojej obecnej pozycji.](#00fb9a)'
-edit_warp_update_description: '[Zmieniono opis](#00fb9a) [%1%](#00fb9a bold) [na "%2%".](#00fb9a)'
-edit_warp_update_name: '[Pomyślnie zmieniono nazwę warpu: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_description: '• Opis: &7%1%'
-edit_location: '• Lokalizacja: &7%1%, %2%, %3%'
-edit_world: '• Świat: &7%1%'
-edit_server: '• Serwer: &7%1%'
-edit_timestamp: '• Utworzone: &7%1%'
-error_no_homes_set: '[Błąd:](#ff3300) [Nie masz żadnych domów!](#ff7e5e)'
-error_no_public_homes_set: '[Błąd](#ff3300) [Nie ma żadnych publicznych domów](#ff7e5e)'
-error_no_warps_set: '[Błąd:](#ff3300) [Nie ma żadnych warpów!](#ff7e5e)'
-private_home_list_page_top: '\n[Domy %1%:](#00fb9a) [(](#00fb9a)[%2%-%3%](#00fb9a bold) [z](#00fb9a) [%4%](#00fb9a bold)[)](#00fb9a)\n'
-public_home_list_page_top: '\n[Public Homes:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-warp_list_page_top: '\n[Warpy:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [z](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-error_public_home_invalid: '[Błąd:](#ff3300) [Nie mogę znaleśc domu publicznego zajętego przez %1% o nazwie %2%.](#ff7e5e)'
-error_set_home_invalid_characters: '[Błąd:](#ff3300) [Nazwy domów muszą zawierać litery lub cyfry (A-Z, 0-9, -_)](#ff7e5e)'
-error_set_home_invalid_length: '[Błąd:](#ff3300) [Nazwy domów mogą mieć maksymalnie 16 znaków!](#ff7e5e)'
-error_set_warp_invalid_characters: '[Błąd:](#ff3300) [Nazwy warpów muszą zawierać litry lub cyfry (A-Z,0-9, -_)](#ff7e5e)'
-error_set_warp_invalid_length: '[Błąd:](#ff3300) [Nazwy warpów mogą mieć maksylanie 16 znaków!](#ff7e5e)'
-error_set_home_maximum_homes: '[Błąd:](#ff3300) [Możesz maksymalnie ustawić %1% domów!](#ff7e5e)'
-error_insufficient_funds: '[Błąd:](#ff3300) [Nie wystarczająca liczba monet! (Koszt: %1%)](#ff7e5e)'
-set_home_spent_money: '[Wydałeś %1% na ustawienie dodatkowego domu!](gray)'
-set_home_used_free_slots: '[Wykorzystałeś limit domów (%1%); Kolejne domy kosztują %2% monet.](gray)'
-set_home_success: '[Pomyślnie ustawiono dom](#00fb9a) [%1%](#00fb9a bold)'
-set_warp_success: '[Pomyślnie ustawiono warp](#00fb9a) [%1%](#00fb9a bold)'
-error_set_home_name_taken: '[Błąd:](#ff3300) [Masz już dom o takiej nazwie.](#ff7e5e)'
-error_set_warp_name_taken: '[Błąd:](#ff3300) [Istnieje już warp o takiej nazwie.](#ff7e5e)'
-set_spawn_success: '[Zaktualizowano spawn do twojej obecnej lokalizacji.](#00fb9a)'
-error_spawn_undefined: '[Błąd:](#ff3300) [Pozycja spawnu nie jest zdefiniowana na tym serwerze.](#ff7e5e)'
-error_tpa_no_pending_request: '[Błąd:](#ff3300) [Nie masz oczekujących próśb o teleporacje.](#ff7e5e)'
-error_tpa_request_expired: '[Błąd:](#ff3300) [Twoja prośba o teleporacje wygasła.](#ff7e5e)'
-error_player_not_found: '[Błąd:](#ff3300) [Nie odnalazłem gracza %1%.](#ff7e5e)'
-return_by_death: '[Powrót w miejsce śmierci?](gray) [/back](#00fb9a show_text=fb9a&Kliknij aby wrócić do ostatniej pozycji smierci. run_command=/back)'
-teleport_request_options: '[Wybierz opcję:](gray) [[Zaakceptuj]](#00fb9a show_text=fb9a&Zaakceptuj prośbę o teleporacje; /tpaccept %1% run_command=/tpaccept %1%) [•](gray) [[Decline]](#ff7e5e show_text=ff7e5e&Odrzuć prośbę o teleportacje; /tpdeny %1% run_command=/tpdeny %1%)'
-tpa_you_accepted: '[Zaakceptowałeś prośbę o teleportacje od %1%](#00fb9a)'
-tpa_you_declined: '[Odrzuciłeś prośbę o teleporacje od %1%''](#ff7e5e)'
-tpa_has_accepted: '[%1% zaakceptował twoją prośbę o teleportacje](#00fb9a)'
-tpa_has_declined: '[%1% odrzucił twoją prośbę o teleportacje](#ff7e5e)'
-tpa_request_sent: '[Wysłałeś prośbę o teleportacje do](#00fb9a) [%1%](#00fb9a bold)'
-tpa_request_ask: '[%1%](#00fb9a bold) [chce się do Ciebie przeteleportować](#00fb9a)'
-tpahere_request_sent: '[Wysłałeś prośbę o teleportacje do Ciebie do gracza](#00fb9a) [%1%](#00fb9a bold)(#00fb9a)'
-tpahere_request_ask: '[%1%](#00fb9a bold) [poprosił, abyś się do niego teleportował](#00fb9a)'
-error_tp_self: '[Błąd:](#ff3300) [Nie możesz przeteleportować się do siebie!](#ff7e5e)'
-error_rtp_invalid_dimension: '[Błąd:](#ff3300) [Możesz losowo teleportować się tylko w głównym świecie!](#ff7e5e)'
-error_rtp_cooldown: '[Błąd:](#ff3300) [Odczekaj %1% minut przed kolejną teleportacją.](#ff7e5e)'
-rtp_spent_money: '[Wydałeś %1% na losowy teleport.](gray)'
-back_spent_money: '[Wydałeś %1% aby wrócić do ostatniej pozycji.](gray)'
-error_command_disabled: '[Błąd:](#ff3300) [To polecenie jest wyłączone!](#ff7e5e)'
-error_console_only: '[Błąd:](#ff3300) [To polecenie możesz wykonać tylko z konsoli.](#ff7e5e)'
-error_tp_invalid_world: '[Błąd:](#ff3300) [Podałeś niepoprwawny świat.](#ff7e5e)'
-error_rtp_randomization_timeout: '[Błąd:](#ff3300) [Nie mogę znaleśc bezpiecznej lokalizacji dla Ciebie.](#ff7e5e)'
-list_item_divider: ' [•](gray) '
-home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)'
-public_home_list_item: '[[%1%]](show_text=fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
-warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
-home_default_description: 'Dom %1%'
-warp_default_description: 'Publiczny warp'
-delete_all_homes_confirm: '[Ostrzeżenie:](#ff3300) [Czy chcesz skasować wszystkie domy?](#ff7e5e)\n[Jest to nie odwracalna zmiana.](gray)\n[→](gray) [[Potwierdź]](#ff3300 show_text=ff3300&Potwierdź usunięcie, nie da się tego przywrócić. run_command=/delhome all confirm)'
-delete_all_warps_confirm: '[Ostrzeżenie:](#ff3300) [Czy chcesz skasować wszystkie warpy?](#ff7e5e)\n[Jest to nie odwracalna zmiana.](gray)\n[→](gray) [[Potwierdź]](#ff3300 show_text=ff3300&Potwierdź usunięcie, nie da się tego przywrócić. run_command=/delwarp all confirm)'
-delete_all_homes_success: '[Pomyślnie usunąłem twoje](#00fb9a) [%1%](#00fb9a bold) [domy.](#00fb9a)'
-delete_all_warps_success: '[Pomyślnie usunąłem wszyskie](#00fb9a) [%1%](#00fb9a bold) [warpów.](#00fb9a)'
-error_permission_restricted_warp: '[Błąd:](#ff3300) [Nie masz uprawnień do warpu %1%!](#ff7e5e)'
-teleporting_complete_console: '[Konsola przeteleportowała Cię %1%.](gray)'
-spawn_warp_default_description: 'Serwerowa pozycja spawnu'
-error_invalid_page_number: '[Błąd:](#ff3300) [Podaj poprawny numer strony.](#ff7e5e)'
-page_options: '[←](gray show_text=&7View previous page run_command=%1%) [Przeglądanie strony %2%/%3%](#00fb9a) [→](gray show_text=&7View next page run_command=%4%)'
-page_options_min: '[Przeglądanie strony %1%/%2%](#00fb9a) [→](gray show_text=&7View next page run_command=%3%)'
-page_options_min_max: '[Przeglądanie strony %1%/%2%](#00fb9a)'
-page_options_max: '[←](gray show_text=&7Zobacz poprzednią stronę run_command=%1%) [Oglądasz stronę %2%/%3%](#00fb9a)'
-page_no_items: '[(Brak rzeczy do wyświetlenia)](gray show_text=&7Spróboj podać numer innej strony)'
-command_list_header: '\n[HuskHomes](#00fb9a bold) [| Lista poleceń](#00fb9a)'
-command_list_item: '[/%1%](#00fb9a show_text=fb9a&%2% suggest_command=/%1%) [•](white) [%3%](gray)'
-error_invalid_on_arrival: '[Błąd:](#ff3300) [Nie udało się zakończyć teleportacji, ponieważ nie można znaleźć świata docelowego.](#ff7e5e)'
-tpignore_toggle_on: '[Jesteś teraz](#00fb9a) [ignoring](#00fb9a bold) [przychodzące żądania teleportu.](#00fb9a) [(Kliknij aby zmienić)](gray show_text=&7Kliknij, aby nasłuchiwać przychodzących żądań teleportu run_command=/huskhomes:tpignore)'
-tpignore_toggle_off: '[Jesteś teraz](#00fb9a) [listening](#00fb9a bold) [na wszystkie przychodzące żądania teleportu.](#00fb9a) [(Click to toggle)](gray show_text=&7Kliknij, aby nasłuchiwać przychodzących żądań teleportu run_command=/huskhomes:tpignore)'
-tpignore_on_reminder: '[Obecnie ignorujesz przychodzące żądania teleportu.!](gray) [(Kliknij aby zmienić)](gray show_text=&7Kliknij, aby nasłuchiwać przychodzących żądań teleportu run_command=/huskhomes:tpignore)'
-error_ignoring_teleport_requests: '[Błąd:](#ff3300) [Obecnie ignorujesz prośby o teleport.!](#ff7e5e) [(Kliknij aby zmienić)](#ff7e5e show_text=ff7e5e&Kliknij, aby nasłuchiwać przychodzących żądań teleportu run_command=/huskhomes:tpignore)'
-error_no_offline_position: '[Błąd:](#ff3300) [Nie mogę znaleźć, gdzie ostatnio wylogował się%1%.](#ff7e5e)'
-error_invalid_player: '[Błąd:](#ff3300) [Proszę uwzględnić prawdziwą nazwę użytkownika!](#ff7e5e)'
-error_no_homes_set_other: '[Błąd:](#ff3300) [%1% nie ma żadnych domów!](#ff7e5e)'
-error_home_invalid_other: '[Błąd:](#ff3300) [%1% nie ma domu nazwanego "%2%"](#ff7e5e)'
-home_deleted_other: '[Pomyślnie usunięto dom %1%,](#00fb9a) [%2%](#00fb9a bold)'
-edit_home_privacy_private_other: '• Dostęp: ff7e5e&Prywatny &7(Tylko %1% może to użyć)'
-error_edit_home_maximum_public_homes: '[Błąd:](#ff3300) [Możesz maksymalnie utworzyć %1% publicznych domów.](#ff7e5e)'
-tpaall_request_sent: '[You sent a teleport request asking everyone to teleport to you!](#00fb9a)'
-error_no_other_online_players: '[Error:](#ff3300) [There are no other online players who could teleport to you.](#ff7e5e)'
-teleporting_all_players: '[Teleporting all players to your position...](#00fb9a)'
-error_illegal_target_coordinates: '[Error:](#ff3300) [Aborted teleport as it exceeds the possible game world limits.](#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'
-edithome_command_description: 'Edit one of your homes'
-warp_command_description: 'Teleport to a warp'
-setwarp_command_description: 'Set a new warp with given name'
-delwarp_command_description: 'Delete a warp'
-editwarp_command_description: 'Edit a warp'
-back_command_description: 'Return to your previous position, or where you died'
-homelist_command_description: 'Get a list of your homes'
-warplist_command_description: 'View the list of warps'
-publichomelist_command_description: 'View the list of public homes'
-publichome_command_description: 'Teleport to a public home'
-tp_command_description: 'Teleport to another player or location'
-tphere_command_description: 'Teleport another player to you'
-tpa_command_description: 'Request to teleport to another player'
-tpahere_command_description: 'Request another player to teleport to you'
-tpaccept_command_description: 'Accept a teleport request'
-tpdeny_command_description: 'Deny a teleport request'
-tpignore_command_description: 'Ignore incoming teleport requests'
-tpoffline_command_description: 'Teleport to where a player was last online'
-rtp_command_description: 'Teleport randomly into the wild'
-spawn_command_description: 'Teleport to spawn'
-setspawn_command_description: 'Set the spawn position'
-tpaall_command_description: 'Request that everyone teleports to you'
-tpall_command_description: 'Teleport everyone to your position'
-huskhomes_command_description: 'View plugin information & reload configs'
\ No newline at end of file
diff --git a/src/main/resources/languages/zh-cn.yml b/src/main/resources/languages/zh-cn.yml
deleted file mode 100644
index 7482166d..00000000
--- a/src/main/resources/languages/zh-cn.yml
+++ /dev/null
@@ -1,153 +0,0 @@
-error_no_permission: '[错误:](#ff3300) [你没有权限去完成这个指令](#ff7e5e)'
-error_no_last_position: '[错误:](#ff3300) [你没有最后一个可用传送点来返回](#ff7e5e)'
-teleporting_last_position: '[在](#00fb9a) [%1%](#00fb9a bold) [秒内返回你上一个传送点](#00fb9a)'
-teleporting_offline_player: '[传送你到 %1% 最后离线的位置...](#00fb9a)'
-teleporting_countdown_start: '[你将在](#00fb9a) [%1%](#00fb9a bold) [秒后被传送](#00fb9a)'
-teleporting_cancelled_movement: '[传送失败; 请不要在传送过程中移动!](#ff7e5e)'
-teleporting_cancelled_damage: '[传送失败; 请不要在传送过程中受到伤害!](#ff7e5e)'
-teleporting_complete: '[传送成功!](#00fb9a)'
-teleporting_action_bar_countdown: '[传送在](#00fb9a) [%1%](#00fb9a bold)[...](#00fb9a)'
-teleporting_action_bar_cancelled: '[传送取消!](#ff7e5e)'
-teleporting_please_stand_still: '[请不要在传送过程中移动或收到伤害.](gray)'
-home_deleted: '[成功删除](#00fb9a) [%1%](#00fb9a bold) [这个家](#00fb9a)'
-warp_deleted: '[成功删除](#00fb9a) [%1%](#00fb9a bold) [这个传送点](#00fb9a)'
-error_home_invalid: '[错误:](#ff3300) [你没有叫 “%1%” 的家](#ff7e5e)'
-error_warp_invalid: '[错误:](#ff3300) [没有叫做 “%1%” 的传送点](#ff7e5e)'
-error_invalid_syntax: '[错误:](#ff3300) [语法不正确.使用: %1%](#ff7e5e)'
-edit_home_title: '\n[编辑家的详细信息](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_home_title_other: '\n[编辑%1%家的详细信息,](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'
-edit_home_options: '\n[[传送]](green show_text=&7传送到你的家 run_command=/huskhomes:home %1%.%2%) [[删除]](red show_text=&7删除你的家 run_command=/huskhomes:delhome %1%.%2%) [[更新位置]](blue show_text=&7更新家的坐标到 run_command=/huskhomes:edithome %1%.%2% location)\n[[更改名字]](yellow show_text=&7更改家的名字 suggest_command=/huskhomes:edithome %1%.%2% rename ) [[编辑描述]](gold show_text=&7更改家的描述 suggest_command=/huskhomes:edithome %1%.%2% description )\n'
-edit_home_options_make_public: '\n[[传送]](green show_text=&7传送到你的家 run_command=/huskhomes:home %1%.%2%) [[删除]](red show_text=&7删除你的家 run_command=/huskhomes:delhome %1%.%2%) [[更新位置]](blue show_text=&7更新家的坐标到 run_command=/huskhomes:edithome %1%.%2% location)\n[[更改名字]](yellow show_text=&7更改家的名字 suggest_command=/huskhomes:edithome %1%.%2% rename ) [[编辑描述]](gold show_text=&7更改家的描述 suggest_command=/huskhomes:edithome %1%.%2% description ) [[更改隐私为公共]](dark_green show_text=&7开放家的传送到全部人 run_command=/huskhomes:edithome %1%.%2% public)\n'
-edit_home_options_make_private: '\n[[传送]](green show_text=&7传送到你的家 run_command=/huskhomes:home %1%.%2%) [[删除]](red show_text=&7删除你的家 run_command=/huskhomes:delhome %1%.%2%) [[更新位置]](blue show_text=&7更新家的坐标到 run_command=/huskhomes:edithome %1%.%2% location)\n[[更改名字]](yellow show_text=&7更改家的名字 suggest_command=/huskhomes:edithome %1%.%2% rename ) [[编辑描述]](gold show_text=&7更改家的描述 suggest_command=/huskhomes:edithome %1%.%2% description ) [[更改隐私为私人]](dark_red show_text=&7更改家的传送为近自己可见 run_command=/huskhomes:edithome %1%.%2% private)\n'
-edit_home_privacy_private: '• 访问: ff7e5e&私人住宅 &7(只有你可以访问)'
-edit_home_privacy_public: '• 访问: &a公共 &7(所有人都可以访问)'
-edit_home_privacy_public_success: '[成功更改家 ](#00fb9a) [%1%](#00fb9a bold)[ 的设置为开放到所有人.](#00fb9a)'
-edit_home_privacy_public_success_economy: '[成功更改家 ](#00fb9a) [%1%](#00fb9a bold)[的设置为付费参观,价格: %2%.](#00fb9a)'
-edit_home_privacy_private_success: '[成功更改家 ](#00fb9a) [%1%](#00fb9a bold)[ 的设置为私人.](#00fb9a)'
-error_edit_home_privacy_already_public: '[错误:](#ff3300) [你的家已经设置为公共的了.](#ff7e5e)'
-error_edit_home_privacy_already_private: '[错误:](#ff3300) [你的家已经设置为私人的了.](#ff7e5e)'
-error_edit_home_privacy_no_permission: '[错误:](#ff3300) [你没有权限去更改家为公共.](#ff7e5e)'
-error_edit_home_description_length: '[错误:](#ff3300) [家的描述必须小于255个字符.](#ff7e5e)'
-error_edit_home_description_characters: '[错误:](#ff3300) [家名字的字符仅支持“A-Z”和“0-9”](#ff7e5e)'
-edit_home_update_location: '[更改位置](#00fb9a) [%1%](#00fb9a bold) [到你现在的位置.](#00fb9a)'
-edit_home_update_description: '[更改描述](#00fb9a) [%1%](#00fb9a bold) [为 "%2%"](#00fb9a)'
-edit_home_update_name: '[成功更改家的名字: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_warp_title: '\n[编辑传送点的详细信息](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_warp_options: '\n[[传送]](green show_text=&7传送你到这个传送点 run_command=/huskhomes:warp %1%) [[删除]](red show_text=&7删除这个传送点 run_command=/huskhomes:delwarp %1%) [[更新位置]](blue show_text=&7更改这个传送点的位置 run_command=/huskhomes:editwarp %1% location)\n[[更改名字]](yellow show_text=&7更改这个传送点的名字 suggest_command=/huskhomes:editwarp %1% rename ) [[编辑描述]](gold show_text=&7更改传送点的描述 suggest_command=/huskhomes:editwarp %1% description )\n'
-error_edit_warp_description_length: '[错误:](#ff3300) [传送点的描述必须小于255个字符.](#ff7e5e)'
-error_edit_warp_description_characters: '[错误:](#ff3300) [传送点名字的字符仅支持“A-Z”和“0-9”](#ff7e5e)'
-edit_warp_update_location: '[更改传送点的位置](#00fb9a) [%1%](#00fb9a bold) [到你现在的位置.](#00fb9a)'
-edit_warp_update_description: '[更改描述](#00fb9a) [%1%](#00fb9a bold) [to "%2%".](#00fb9a)'
-edit_warp_update_name: '[成功更改传送点的名字. %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_description: '• 描述: &7%1%'
-edit_location: '• 坐标: &7%1%, %2%, %3%'
-edit_world: '• 世界: &7%1%'
-edit_server: '• 服务器: &7%1%'
-edit_timestamp: '• Created: &7%1%'
-error_no_homes_set: '[错误:](#ff3300) [你还没有设置任何一个家!](#ff7e5e)'
-error_no_public_homes_set: '[错误:](#ff3300) [没有公共的家被设置!](#ff7e5e)'
-error_no_warps_set: '[错误:](#ff3300) [没有地标被设置!](#ff7e5e)'
-private_home_list_page_top: '\n[%1%’的家:](#00fb9a) [(](#00fb9a)[%2%-%3%](#00fb9a bold) [在](#00fb9a) [%4%](#00fb9a bold)[)](#00fb9a)\n'
-public_home_list_page_top: '\n[公共的家:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [在](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-warp_list_page_top: '\n[传送点:](#00fb9a) [(](#00fb9a)[%1%-%2%](#00fb9a bold) [在](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n'
-error_public_home_invalid: '[错误:](#ff3300) [没有找到 %1% 的名为 %2% 的公共房屋.](#ff7e5e)'
-error_set_home_invalid_characters: '[错误:](#ff3300) [家的字符暂不支持中文(生草)](#ff7e5e)'
-error_set_home_invalid_length: '[错误:](#ff3300) [家的名字最多支持16个字符](#ff7e5e)'
-error_set_warp_invalid_characters: '[错误:](#ff3300) [传送点的字符暂不支持中文(生草)](#ff7e5e)'
-error_set_warp_invalid_length: '[错误:](#ff3300) [传送点的名字最多支持16个字符](#ff7e5e)'
-error_set_home_maximum_homes: '[错误:](#ff3300) [你最多可以设置 %1% 个家!](#ff7e5e)'
-error_insufficient_funds: '[错误:](#ff3300) [你没有足够的钱! (需要花费: %1%)](#ff7e5e)'
-set_home_spent_money: '[成功花费 %1% 去设置了一个额外的家!](gray)'
-set_home_used_free_slots: '[你已经耗尽了所有可设置的家 (%1%); 设置额外的家需要花费 %2% .](gray)'
-set_home_success: '[成功地设置了一个名](#00fb9a) [%1%](#00fb9a bold) [的家](#00fb9a)'
-set_warp_success: '[成功地设置了一个名](#00fb9a) [%1%](#00fb9a bold) [的传送点](#00fb9a)'
-error_set_home_name_taken: '[错误:](#ff3300) [这个名字已经被你用过了.](#ff7e5e)'
-error_set_warp_name_taken: '[错误:](#ff3300) [这个传送点的名字已经被用过了.](#ff7e5e)'
-set_spawn_success: '[成功设置该服务器的出生点为你现在的位置.](#00fb9a)'
-error_spawn_undefined: '[错误:](#ff3300) [这个服务器没有设置出生点.](#ff7e5e)'
-error_tpa_no_pending_request: '[错误:](#ff3300) [你没有需要处理的传送请求.](#ff7e5e)'
-error_tpa_request_expired: '[错误:](#ff3300) [你的传送请求已经过期.](#ff7e5e)'
-error_player_not_found: '[错误:](#ff3300) [没有找到玩家 %1%.](#ff7e5e)'
-return_by_death: '[回到上一个死亡点?](gray) [/back](#00fb9a show_text=fb9a&点击来回到上一次死亡的地点 run_command=/back)'
-teleport_request_options: '[传送请求:](gray) [[同意传送]](#00fb9a show_text=fb9a&同意这次传送; /tpaccept %1% run_command=/tpaccept %1%) [•](gray) [[残忍拒绝]](#ff7e5e show_text=ff7e5e&拒绝本次传送; /tpdeny %1% run_command=/tpdeny %1%)'
-tpa_you_accepted: '[你接受了 %1% 的传送请求](#00fb9a)'
-tpa_you_declined: '[你拒绝了 %1% 的传送请求](#ff7e5e)'
-tpa_has_accepted: '[%1% 接受了你的传送请求](#00fb9a)'
-tpa_has_declined: '[%1% 拒绝了你的传送请求](#ff7e5e)'
-tpa_request_sent: '[你发送传送请求给](#00fb9a) [%1%](#00fb9a bold)'
-tpa_request_ask: '[%1%](#00fb9a bold) [请求传送到你](#00fb9a)'
-tpahere_request_sent: '[你发送了一个传送请求给](#00fb9a) [%1%](#00fb9a bold) [来传送到你](#00fb9a)'
-tpahere_request_ask: '[%1%](#00fb9a bold) [请求你传送到他们那里](#00fb9a)'
-error_tp_self: '[错误:](#ff3300) [你不能自己传送自己!](#ff7e5e)'
-error_rtp_invalid_dimension: '[错误:](#ff3300) [你不能在这个维度使用随机传送!](#ff7e5e)'
-error_rtp_cooldown: '[错误:](#ff3300) [你必须等待 %1% 分钟才能再次随机传送.](#ff7e5e)'
-rtp_spent_money: '[花费 %1% 随机传送.](gray)'
-back_spent_money: '[花费 %1% 回到你的上一个地点.](gray)'
-error_command_disabled: '[错误:](#ff3300) [该命令已禁用!](#ff7e5e)'
-error_console_only: '[错误:](#ff3300) [该命令只能从服务器控制台运行.](#ff7e5e)'
-error_tp_invalid_world: '[错误:](#ff3300) [请指定有效的服务器世界.](#ff7e5e)'
-error_rtp_randomization_timeout: '[错误:](#ff3300) [找不到安全的随机位置传送你.](#ff7e5e)'
-list_item_divider: ' [•](gray) '
-home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)'
-public_home_list_item: '[[%1%]](show_text=fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
-warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
-home_default_description: '%1% 的家'
-warp_default_description: '可公开访问的地标'
-delete_all_homes_confirm: '[严重警告:](#ff3300) [你确定要删除这个家么?](#ff7e5e)\n[一旦你确认,就无法恢复它们.](gray)\n[→](gray) [[确认]](#ff3300 show_text=ff3300&点击来确认本次删除操作.这个操作是不可逆的. run_command=/delhome all confirm)'
-delete_all_warps_confirm: '[严重警告:](#ff3300) [你确定要删除这个传送点么?](#ff7e5e)\n[一旦你确认,就无法恢复它们.](gray)\n[→](gray) [[确认]](#ff3300 show_text=ff3300&点击来确认本次删除操作.这个操作是不可逆的. run_command=/delwarp all confirm)'
-delete_all_homes_success: '[成功删除](#00fb9a) [%1%](#00fb9a bold) [家.](#00fb9a)'
-delete_all_warps_success: '[成功删除所有](#00fb9a) [%1%](#00fb9a bold) [服务器传送点](#00fb9a)'
-error_permission_restricted_warp: '[错误:](#ff3300) [你没有权限去传送到 %1% 这个传送点!](#ff7e5e)'
-teleporting_complete_console: '[控制台传送你到 %1%.](gray)'
-spawn_warp_default_description: '这个服务器的 /spawn 位置'
-error_invalid_page_number: '[错误:](#ff3300) [请指定有效的页码.](#ff7e5e)'
-page_options: '[←](gray show_text=&7查看上一页 page run_command=%1%) [查看页面 %2%/%3%](#00fb9a) [→](gray show_text=&7查看下一页 page run_command=%4%)'
-page_options_min: '[查看页面 %1%/%2%](#00fb9a) [→](gray show_text=&7查看下一页 page run_command=%3%)'
-page_options_min_max: '[查看页面 %1%/%2%](#00fb9a)'
-page_options_max: '[←](gray show_text=&7查看上一页 run_command=%1%) [查看页面 %2%/%3%](#00fb9a)'
-page_no_items: '[(此页上没有要显示的项目)](gray show_text=&7请尝试其他页码)'
-command_list_header: '\n[HuskHomes](#00fb9a bold) [| 指令列表](#00fb9a)'
-command_list_item: '[/%1%](#00fb9a show_text=fb9a&%2% suggest_command=/%1%) [•](white) [%3%](gray)'
-error_invalid_on_arrival: '[错误:](#ff3300) [无法完成你的指定传送,因为找不到目标世界。](#ff7e5e)'
-tpignore_toggle_on: '[你现在是](#00fb9a) [勿扰模式](#00fb9a bold) [拒绝所有的传送请求.](#00fb9a) [(点击来切换)](gray show_text=&7单击以开启接受传送请求 run_command=/huskhomes:tpignore)'
-tpignore_toggle_off: '[你现在是](#00fb9a) [正常模式](#00fb9a bold) [接受所有的传送请求.](#00fb9a) [(点击来切换)](gray show_text=&7单击以关闭接受传送请求 run_command=/huskhomes:tpignore)'
-tpignore_on_reminder: '[您当前正在忽略接受传送请求!](gray) [(点击来切换)](gray show_text=&7单击以开启接受传送请求run_command=/huskhomes:tpignore)'
-error_ignoring_teleport_requests: '[错误:](#ff3300) [你当前正在忽略传送请求!](#ff7e5e) [(点击来切换)](#ff7e5e show_text=ff7e5e&单击以开启接受传送请求 run_command=/huskhomes:tpignore)'
-error_no_offline_position: '[错误:](#ff3300) [找不到 %1% 上次离线的位置.](#ff7e5e)'
-error_invalid_player: '[错误:](#ff3300) [请指定一个有效的玩家名称!](#ff7e5e)'
-error_no_homes_set_other: '[错误:](#ff3300) [%1% 没有设置任何一个家!](#ff7e5e)'
-error_home_invalid_other: '[错误:](#ff3300) [%1% 没有叫做 "%2%" 的家](#ff7e5e)'
-home_deleted_other: '[成功删除了 %1% 的名字叫](#00fb9a) [%2%](#00fb9a bold) [的家](#00fb9a)'
-edit_home_privacy_private_other: '• 隐私性: ff7e5e&私有的 &7(只有 %1% 可以使用该家)'
-error_edit_home_maximum_public_homes: '[错误:](#ff3300) [您最多只能公开 %1% 的家。.](#ff7e5e)'
-tpaall_request_sent: '[你发送了一个传送请求,要求所有人都传送到你这里。!](#00fb9a)'
-error_no_other_online_players: '[错误:](#ff3300) [没有在线玩家可以传送到你的位置](#ff7e5e)'
-teleporting_all_players: '[正在将所有人都传送到你的位置...](#00fb9a)'
-error_illegal_target_coordinates: '[错误:](#ff3300) 中止传送,因为它可能超出了世界限制.](#ff7e5e)'
-home_command_description: '传送回家'
-sethome_command_description: '设置一个带有名称的家园'
-delhome_command_description: '删除家园'
-edithome_command_description: '编辑家园'
-warp_command_description: '传送到传送点'
-setwarp_command_description: '设置一个带有名称的传送点'
-delwarp_command_description: '删除传送点'
-editwarp_command_description: '编辑传送点'
-back_command_description: '返回到上次传送或死亡的位置'
-homelist_command_description: '你的家园列表'
-warplist_command_description: '传送点列表'
-publichomelist_command_description: '公开家园列表'
-publichome_command_description: '传送至公开家园'
-tp_command_description: '传送到该玩家或该地点'
-tphere_command_description: '将该玩家传送至你的位置'
-tpa_command_description: '请求传送到该玩家的位置'
-tpahere_command_description: '要求其他玩家传送到你的位置'
-tpaccept_command_description: '接受传送请求'
-tpdeny_command_description: '拒绝传送请求'
-tpignore_command_description: '忽略传送请求'
-tpoffline_command_description: '传送到该玩家最后在线的位置'
-rtp_command_description: '在野外随机传送'
-spawn_command_description: '传送回出生点'
-setspawn_command_description: '设置出生点位置'
-tpaall_command_description: '要求所有人都传送到你的位置'
-tpall_command_description: '将所有人传送到你的位置'
-huskhomes_command_description: '查看插件信息 & 重载配置文件'
diff --git a/src/main/resources/languages/zh-tw.yml b/src/main/resources/languages/zh-tw.yml
deleted file mode 100644
index fcad7986..00000000
--- a/src/main/resources/languages/zh-tw.yml
+++ /dev/null
@@ -1,153 +0,0 @@
-error_no_permission: '[錯誤:](#ff3300) [你沒有權限執行這個指令](#ff7e5e)'
-error_no_last_position: '[錯誤:](#ff3300) [無法回到你的上一個地點](#ff7e5e)'
-teleporting_last_position: '[在](#00fb9a) [%1%](#00fb9a bold) [秒內返回你上一個地點](#00fb9a)'
-teleporting_offline_player: '[傳送你到 %1% 最後離線的位置...](#00fb9a)'
-teleporting_countdown_start: '[你將在](#00fb9a) [%1%](#00fb9a bold) [秒後被傳送](#00fb9a)'
-teleporting_cancelled_movement: '[傳送失敗; 請不要在傳送過程中移動!](#ff7e5e)'
-teleporting_cancelled_damage: '[傳送失敗; 傳送過程中受到傷害!](#ff7e5e)'
-teleporting_complete: '[傳送成功!](#00fb9a)'
-teleporting_action_bar_countdown: '[傳送到](#00fb9a) [%1%](#00fb9a bold)[...](#00fb9a)'
-teleporting_action_bar_cancelled: '[傳送取消!](#ff7e5e)'
-teleporting_please_stand_still: '[請不要在傳送過程中移動或收到傷害.](gray)'
-home_deleted: '[成功刪除](#00fb9a) [%1%](#00fb9a bold) [這個家](#00fb9a)'
-warp_deleted: '[成功刪除](#00fb9a) [%1%](#00fb9a bold) [這個地標](#00fb9a)'
-error_home_invalid: '[錯誤:](#ff3300) [你沒有叫 "%1%" 的家](#ff7e5e)'
-error_warp_invalid: '[錯誤:](#ff3300) [沒有叫做 "%1%" 的地標](#ff7e5e)'
-error_invalid_syntax: '[錯誤:](#ff3300) [語法不正確.請使用: %1%](#ff7e5e)'
-edit_home_title: '\n[編輯家的詳細信息](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_home_options: '\n[[傳送]](green show_text=&7傳送到你的家 run_command=/huskhomes:home %1%.%2%) [[刪除]](red show_text=&7刪除你的家 run_command=/huskhomes:delhome %1%.%2%) [[更新位置]](blue show_text=&7更新家的位置 run_command=/huskhomes:edithome %1%.%2% location)\n[[更改名字]](yellow show_text=&7更改家的名字 suggest_command=/huskhomes:edithome %1%.%2% rename ) [[編輯描述]](gold show_text=&7更改家的描述 suggest_command=/huskhomes:edithome %1%.%2% description )\n'
-edit_home_options_make_public: '\n[[傳送]](green show_text=&7傳送到你的家 run_command=/huskhomes:home %1%.%2%) [[刪除]](red show_text=&7刪除你的家 run_command=/huskhomes:delhome %1%.%2%) [[更新位置]](blue show_text=&7更新家的位置 run_command=/huskhomes:edithome %1%.%2% location)\n[[更改名字]](yellow show_text=&7更改家的名字 suggest_command=/huskhomes:edithome %1%.%2% rename ) [[編輯描述]](gold show_text=&7更改家的描述 suggest_command=/huskhomes:edithome %1%.%2% description ) [[更改訪問權限為公開]](dark_green show_text=&7開放家的傳送權限 run_command=/huskhomes:edithome %1%.%2% public)\n'
-edit_home_options_make_private: '\n[[傳送]](green show_text=&7傳送到你的家 run_command=/huskhomes:home %1%.%2%) [[刪除]](red show_text=&7刪除你的家 run_command=/huskhomes:delhome %1%.%2%) [[更新位置]](blue show_text=&7更新家的位置 run_command=/huskhomes:edithome %1%.%2% location)\n[[更改名字]](yellow show_text=&7更改家的名字 suggest_command=/huskhomes:edithome %1%.%2% rename ) [[編輯描述]](gold show_text=&7更改家的描述 suggest_command=/huskhomes:edithome %1%.%2% description ) [[更改訪問權限為私人]](dark_red show_text=&7關閉家的傳送權限 run_command=/huskhomes:edithome %1%.%2% private)\n'
-edit_home_privacy_private: '• 訪問權: ff7e5e&私人 &7(只有你可以訪問)'
-edit_home_privacy_public: '• 訪問權: &a公開 &7(所有人都可以訪問)'
-edit_home_privacy_public_success: '[成功將](#00fb9a) [%1%](#00fb9a bold)[ 的訪問權限改為公開.](#00fb9a)'
-edit_home_privacy_public_success_economy: '[成功將](#00fb9a) [%1%](#00fb9a bold)[ 的訪問權限設為公開,價格: %2%.](#00fb9a)'
-edit_home_privacy_private_success: '[成功將](#00fb9a) [%1%](#00fb9a bold)[ 的訪問權限設為私人.](#00fb9a)'
-error_edit_home_privacy_already_public: '[錯誤:](#ff3300) [你的家已經設為公開了.](#ff7e5e)'
-error_edit_home_privacy_already_private: '[錯誤:](#ff3300) [你的家已經設為私人了.](#ff7e5e)'
-error_edit_home_privacy_no_permission: '[錯誤:](#ff3300) [你沒有權限更改家的訪問權.](#ff7e5e)'
-error_edit_home_description_length: '[錯誤:](#ff3300) [描述必須小於255個字符.](#ff7e5e)'
-error_edit_home_description_characters: '[錯誤:](#ff3300) [家的字符暫不支持中文](#ff7e5e)'
-edit_home_update_location: '[成功將](#00fb9a) [%1%](#00fb9a bold) [的位置改到你現在的位置.](#00fb9a)'
-edit_home_update_description: '[成功更改](#00fb9a) [%1%](#00fb9a bold) [的描述為 "%2%"](#00fb9a)'
-edit_home_update_name: '[成功更改家的名字: %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_warp_title: '\n[編輯地標的詳細信息](#00fb9a) [%1%](#00fb9a bold)[:](#00fb9a)'
-edit_warp_options: '\n[[傳送]](green show_text=&7傳送到這個地標 run_command=/huskhomes:warp %1%) [[刪除]](red show_text=&7刪除這個地標 run_command=/huskhomes:delwarp %1%) [[更新位置]](blue show_text=&7更改這個地標的位置 run_command=/huskhomes:editwarp %1% location)\n[[更改名字]](yellow show_text=&7更改這個地標的名字 suggest_command=/huskhomes:editwarp %1% rename ) [[編輯描述]](gold show_text=&7更改地標的描述 suggest_command=/huskhomes:editwarp %1% description )\n'
-error_edit_warp_description_length: '[錯誤:](#ff3300) [地標的描述必須小於255個字符.](#ff7e5e)'
-error_edit_warp_description_characters: '[錯誤:](#ff3300) [地標的字符暫不支持中文](#ff7e5e)'
-edit_warp_update_location: '[成功更改地標的位置](#00fb9a) [%1%](#00fb9a bold) [到你現在的位置.](#00fb9a)'
-edit_warp_update_description: '[成功更改](#00fb9a) [%1%](#00fb9a bold) [的描述為 "%2%".](#00fb9a)'
-edit_warp_update_name: '[成功更改地標的名字. %1% →](#00fb9a) [%2%](#00fb9a bold)'
-edit_description: '• 描述: &7%1%'
-edit_location: '• 坐標: &7%1%, %2%, %3%'
-edit_world: '• 世界: &7%1%'
-edit_server: '• 伺服器: &7%1%'
-edit_timestamp: '• 創建時間: &7%1%'
-error_no_homes_set: '[錯誤:](#ff3300) [你還沒有設置任何一個家!](#ff7e5e)'
-error_no_public_homes_set: '[錯誤:](#ff3300) [目前沒有公開的家可傳送!](#ff7e5e)'
-error_no_warps_set: '[錯誤:](#ff3300) [目前沒有可傳送的地標!](#ff7e5e)'
-private_home_list_page_top: '\n[%1%的家:](#00fb9a) [(](#00fb9a)[目前顯示 %2%-%3%](#00fb9a bold) [總共有](#00fb9a) [%4% 個家](#00fb9a bold)[)](#00fb9a)\n'
-public_home_list_page_top: '\n[開放的家:](#00fb9a) [(](#00fb9a)[目前顯示 %1%-%2%](#00fb9a bold) [總共有](#00fb9a) [%3% 個開放的家](#00fb9a bold)[)](#00fb9a)\n'
-warp_list_page_top: '\n[地標:](#00fb9a) [(](#00fb9a)[目前顯示 %1%-%2%](#00fb9a bold) [總共有](#00fb9a) [%3% 個地標](#00fb9a bold)[)](#00fb9a)\n'
-error_public_home_invalid: '[錯誤:](#ff3300) [沒有在 %1% 名下找到名為 %2% 的公開傳點.](#ff7e5e)'
-error_set_home_invalid_characters: '[錯誤:](#ff3300) [家的字符暫不支持中文](#ff7e5e)'
-error_set_home_invalid_length: '[錯誤:](#ff3300) [家的名字最多只能有16個字符](#ff7e5e)'
-error_set_warp_invalid_characters: '[錯誤:](#ff3300) [地標的字符暫不支持中文](#ff7e5e)'
-error_set_warp_invalid_length: '[錯誤:](#ff3300) [地標的名字最多只能有16個字符](#ff7e5e)'
-error_set_home_maximum_homes: '[錯誤:](#ff3300) [你最多可以設置 %1% 個家!](#ff7e5e)'
-error_insufficient_funds: '[錯誤:](#ff3300) [你沒有足夠的錢! (需要花費: %1%)](#ff7e5e)'
-set_home_spent_money: '[成功花費 %1% 去設置了一個額外的家!](gray)'
-set_home_used_free_slots: '[你已經耗盡了免費的設置額度 (%1%); 設置額外的家需要花費 %2% .](gray)'
-set_home_success: '[成功設置一個名為](#00fb9a) [%1%](#00fb9a bold) [的家](#00fb9a)'
-set_warp_success: '[成功設置一個名為](#00fb9a) [%1%](#00fb9a bold) [的地標](#00fb9a)'
-error_set_home_name_taken: '[錯誤:](#ff3300) [這個名字已經被你用過了.](#ff7e5e)'
-error_set_warp_name_taken: '[錯誤:](#ff3300) [這個地標的名字已經被用過了.](#ff7e5e)'
-set_spawn_success: '[成功設置伺服器的重生點為你現在的位置.](#00fb9a)'
-error_spawn_undefined: '[錯誤:](#ff3300) [這個伺服器沒有設置重生點.](#ff7e5e)'
-error_tpa_no_pending_request: '[錯誤:](#ff3300) [你沒有需要處理的傳送請求.](#ff7e5e)'
-error_tpa_request_expired: '[錯誤:](#ff3300) [你的傳送請求已經逾時.](#ff7e5e)'
-error_player_not_found: '[錯誤:](#ff3300) [沒有找到玩家 %1%.](#ff7e5e)'
-return_by_death: '[回到上一個死亡點?](gray) [/back](#00fb9a show_text=fb9a&點擊來回到上一次死亡的地點 run_command=/back)'
-teleport_request_options: '[傳送請求:](gray) [[同意傳送]](#00fb9a show_text=fb9a&同意這次傳送 request; /tpaccept %1% run_command=/tpaccept %1%) [•](gray) [[殘忍拒絕]](#ff7e5e show_text=ff7e5e&拒絕本次傳送 request; /tpdeny %1% run_command=/tpdeny %1%)'
-tpa_you_accepted: '[你接受了 %1% 的傳送請求](#00fb9a)'
-tpa_you_declined: '[你拒絕了 %1% 的傳送請求](#ff7e5e)'
-tpa_has_accepted: '[%1% 接受了你的傳送請求](#00fb9a)'
-tpa_has_declined: '[%1% 拒絕了你的傳送請求](#ff7e5e)'
-tpa_request_sent: '[你發送傳送請求給](#00fb9a) [%1%](#00fb9a bold)'
-tpa_request_ask: '[%1%](#00fb9a bold) [請求傳送到你身邊](#00fb9a)'
-tpahere_request_sent: '[你發送了一個傳送請求給](#00fb9a) [%1%](#00fb9a bold) [來傳送到你身邊](#00fb9a)'
-tpahere_request_ask: '[%1%](#00fb9a bold) [請求你傳送到他身邊](#00fb9a)'
-error_tp_self: '[錯誤:](#ff3300) [你不能自己傳送自己!](#ff7e5e)'
-error_rtp_invalid_dimension: '[錯誤:](#ff3300) [你不能在這個世界使用隨機傳送!](#ff7e5e)'
-error_rtp_cooldown: '[錯誤:](#ff3300) [你必須等待 %1% 分鐘才能再次隨機傳送.](#ff7e5e)'
-rtp_spent_money: '[花費 %1% 隨機傳送.](gray)'
-back_spent_money: '[花費 %1% 回到你的上一個地點.](gray)'
-error_command_disabled: '[錯誤:](#ff3300) [該命令已禁用!](#ff7e5e)'
-error_console_only: '[錯誤:](#ff3300) [該命令只能從伺服器後台執行.](#ff7e5e)'
-error_tp_invalid_world: '[錯誤:](#ff3300) [請指定有效的伺服器與世界.](#ff7e5e)'
-error_rtp_randomization_timeout: '[錯誤:](#ff3300) [找不到安全的位置,你可以稍後再試試看.](#ff7e5e)'
-list_item_divider: ' [•](gray) '
-home_list_item: '[[%1%]](show_text=&7%3% run_command=/huskhomes:edithome %2%.%1%)'
-public_home_list_item: '[[%1%]](show_text=fb9a&%2%: &7%3% run_command=/huskhomes:phome %2%.%1%)'
-warp_list_item: '[[%1%]](show_text=&7%2% run_command=/huskhomes:warp %1%)'
-home_default_description: '%1% 的家'
-warp_default_description: '可公開訪問的地標'
-delete_all_homes_confirm: '[警告:](#ff3300) [你確定要刪除全部的家嗎?](#ff7e5e)\n[一旦你確認,就無法恢復它們.](gray)\n[→](gray) [[確認]](#ff3300 show_text=ff3300&點擊來確認本次刪除操作.這個操作是不可逆的. run_command=/delhome all confirm)'
-delete_all_warps_confirm: '[警告:](#ff3300) [你確定要刪除全部的地標嗎?](#ff7e5e)\n[一旦你確認,就無法恢復它們.](gray)\n[→](gray) [[確認]](#ff3300 show_text=ff3300&點擊來確認本次刪除操作.這個操作是不可逆的. run_command=/delwarp all confirm)'
-delete_all_homes_success: '[成功刪除](#00fb9a) [%1%](#00fb9a bold) [個家.](#00fb9a)'
-delete_all_warps_success: '[成功刪除](#00fb9a) [%1%](#00fb9a bold) [個伺服器地標](#00fb9a)'
-error_permission_restricted_warp: '[錯誤:](#ff3300) [你沒有權限傳送至地標 %1%!](#ff7e5e)'
-teleporting_complete_console: '[後台傳送你到 %1%.](gray)'
-spawn_warp_default_description: '這個伺服器的 /spawn 位置'
-error_invalid_page_number: '[錯誤:](#ff3300) [請指定有效的頁碼.](#ff7e5e)'
-page_options: '\n[←](gray show_text=&7查看上一頁 run_command=%1%) [目前頁數 %2%/%3%](#00fb9a) [→](gray show_text=&7查看下一頁 run_command=%4%)'
-page_options_min: '\n[目前頁數 %1%/%2%](#00fb9a) [→](gray show_text=&7查看下一頁 run_command=%3%)'
-page_options_min_max: '\n[目前頁數 %1%/%2%](#00fb9a)'
-page_options_max: '\n[←](gray show_text=&7查看上一頁 run_command=%1%) [目前頁數 %2%/%3%](#00fb9a)'
-page_no_items: '[(此頁沒有可顯示的項目)](gray show_text=&7請嘗試其他頁碼)'
-command_list_header: '\n[HuskHomes](#00fb9a bold) [| 指令列表](#00fb9a)'
-error_invalid_on_arrival: '[錯誤:](#ff3300) [無法完成傳送,因為找不到目標世界。](#ff7e5e)'
-tpignore_toggle_on: '[你現在是](#00fb9a) [勿擾模式](#e64545 bold) [拒絕所有的傳送請求.](#00fb9a) [(點擊來切換)](gray show_text=&7點擊切換為正常模式 run_command=/huskhomes:tpignore)'
-tpignore_toggle_off: '[你現在是](#00fb9a) [正常模式](#00fb9a bold) [接受所有的傳送請求.](#00fb9a) [(點擊來切換)](gray show_text=&7點擊切換為勿擾模式 run_command=/huskhomes:tpignore)'
-tpignore_on_reminder: '[歡迎回來!](gray) [你現在是](#00fb9a) [勿擾模式](#e64545 bold) [拒絕所有的傳送請求.](#00fb9a) [(點擊來切換)](gray show_text=&7點擊切換為正常模式 run_command=/huskhomes:tpignore)'
-error_ignoring_teleport_requests: '[錯誤:](#ff3300) [你當前正在忽略傳送請求!](#ff7e5e) [(點擊來切換)](#ff7e5e show_text=ff7e5e&點擊切換為正常模式 run_command=/huskhomes:tpignore)'
-error_no_offline_position: '[錯誤:](#ff3300) [找不到 %1% 離線的位置.](#ff7e5e)'
-error_invalid_player: '[錯誤:](#ff3300) [請輸入有效的玩家ID!](#ff7e5e)'
-error_no_homes_set_other: '[錯誤:](#ff3300) [%1% 還沒設置任何家!](#ff7e5e)'
-error_home_invalid_other: '[錯誤:](#ff3300) [%1% 沒有名為 "%2%" 的家](#ff7e5e)'
-home_deleted_other: '[成功刪除 %1% 的家](#00fb9a) [%2%](#00fb9a bold)'
-edit_home_privacy_private_other: '• 訪問權: ff7e5e&私人 &7(只有 %1% 可以使用)'
-edit_home_title_other: '\n[編輯 %1% 家的詳細信息](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)'
-command_list_item: '[/%1%](#00fb9a show_text=fb9a&%2% suggest_command=/%1%) [•](white) [%3%](gray)'
-error_edit_home_maximum_public_homes: '[錯誤:](#ff3300) [你最多只能將 %1% 個家設為公開.](#ff7e5e)'
-tpaall_request_sent: '[你向所有玩家發送了一個傳送請求,要求所有人傳送到你身邊!](#00fb9a)'
-error_no_other_online_players: '[錯誤:](#ff3300) [沒有其他在線上的玩家可以傳送到你身邊!](#ff7e5e)'
-teleporting_all_players: '[將所有玩家傳送到你的身邊...](#00fb9a)'
-error_illegal_target_coordinates: '[錯誤:](#ff3300) [中止傳送,因為它超出了可能的遊戲世界限制.](#ff7e5e)'
-home_command_description: '傳送到你的家'
-sethome_command_description: '設定一個新的家'
-delhome_command_description: '刪除一個家'
-edithome_command_description: '編輯你的家'
-warp_command_description: '傳送至地標'
-setwarp_command_description: '設定一個新的地標'
-delwarp_command_description: '刪除地標'
-editwarp_command_description: '編輯地標'
-back_command_description: '回到你以前的位置,或者你死去的地方'
-homelist_command_description: '列出所有的家'
-warplist_command_description: '列出所有的地標'
-publichomelist_command_description: '查看開啟訪問權限的家'
-publichome_command_description: '傳送到開啟訪問權限的家'
-tp_command_description: '傳送到另一個玩家或世界座標'
-tphere_command_description: '將另一個玩家傳送至你的身邊'
-tpa_command_description: '請求傳送到另一個玩家身邊'
-tpahere_command_description: '請求其他玩家傳送到你的身邊'
-tpaccept_command_description: '接受傳送請求'
-tpdeny_command_description: '拒絕傳送請求'
-tpignore_command_description: '忽略所有傳送請求 (切換 勿擾/正常 模式)'
-tpoffline_command_description: '傳送至該玩家離線的位置'
-rtp_command_description: '隨機傳送'
-spawn_command_description: '傳送至重生點'
-setspawn_command_description: '設置重生點位置'
-tpaall_command_description: '請求所有玩家傳送至你的身邊'
-tpall_command_description: '強制將所有玩家傳送至你的身邊'
-huskhomes_command_description: '查看插件信息並重新加載配置'
\ No newline at end of file
diff --git a/src/main/resources/marker-icons/public_home.png b/src/main/resources/marker-icons/public_home.png
deleted file mode 100644
index 6cfb8809..00000000
Binary files a/src/main/resources/marker-icons/public_home.png and /dev/null differ
diff --git a/src/main/resources/marker-icons/warp.png b/src/main/resources/marker-icons/warp.png
deleted file mode 100644
index 7e4358fa..00000000
Binary files a/src/main/resources/marker-icons/warp.png and /dev/null differ
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
deleted file mode 100644
index 176c5ad3..00000000
--- a/src/main/resources/plugin.yml
+++ /dev/null
@@ -1,281 +0,0 @@
-name: HuskHomes
-version: '${project.version}'
-main: me.william278.huskhomes2.HuskHomes
-api-version: 1.16
-authors: [William278]
-softdepend: [dynmap, Vault, BlueMap, Squaremap]
-description: A powerful, intuitive and flexible teleportation suite
-website: 'https://william278.net'
-libraries:
- - 'redis.clients:jedis:${jedis.version}'
-
-commands:
- home:
- usage: /
- permission: huskhomes.home
- sethome:
- usage: /
- permission: huskhomes.sethome
- delhome:
- usage: /
- permission: huskhomes.delhome
- edithome:
- usage: / [arguments]
- permission: huskhomes.edithome
- warp:
- usage: /
- permission: huskhomes.warp
- setwarp:
- usage: /
- permission: huskhomes.setwarp
- delwarp:
- usage: /
- permission: huskhomes.delwarp
- editwarp:
- usage: / [arguments]
- permission: huskhomes.editwarp
- back:
- usage: /
- permission: huskhomes.back
- homelist:
- usage: /
- permission: huskhomes.home
- aliases: [homes, listhomes]
- warplist:
- usage: /
- permission: huskhomes.warp
- aliases: [warps, listwarps]
- publichomelist:
- usage: /
- permission: huskhomes.publichome
- aliases: [phomes, phomelist, listphomes, listpublichomes]
- publichome:
- usage: /
- permission: huskhomes.publichome
- aliases: [phome]
- tp:
- usage: / [player] [|] [] [] [yaw] [pitch] [world] [server]
- permission: huskhomes.tp
- aliases: [tpo]
- tphere:
- usage: /
- permission: huskhomes.tphere
- aliases: [tpohere]
- tpa:
- usage: /
- permission: huskhomes.tpa
- aliases: [tprequest, tpask]
- tpahere:
- usage: /
- permission: huskhomes.tpahere
- aliases: [tphererequest, tpaskhere]
- tpaccept:
- usage: / [player]
- permission: huskhomes.tpaccept
- aliases: [tpyes]
- tpdeny:
- usage: / [player]
- permission: huskhomes.tpdeny
- aliases: [tpno]
- tpignore:
- usage: /
- permission: huskhomes.tpignore
- aliases: [tpaignore, ignoretprequests]
- tpoffline:
- usage: /
- permission: huskhomes.tpoffline
- rtp:
- usage: /
- permission: huskhomes.rtp
- aliases: [randomtp, randomteleport, wild]
- spawn:
- usage: /
- permission: huskhomes.spawn
- setspawn:
- usage: /
- permission: huskhomes.spawn.set
- tpaall:
- usage: /
- aliases: [tpaallhere, tpahereall, tprequestall]
- permission: huskhomes.tpaall
- tpall:
- usage: /
- aliases: [tphereall, tpallhere]
- permission: huskhomes.tpall
- huskhomes:
- usage: /
-
-permissions:
- huskhomes.*:
- description: Grants all HuskHomes permissions
- children:
- huskhomes.bypass_timers: true
- huskhomes.commands: true
- huskhomes.private_home_admin: true
- huskhomes.private_home_admin:
- description: Lets you access and edit private homes
- children:
- huskhomes.home.other: true
- huskhomes.edithome.other: true
- huskhomes.delhome.other: true
- huskhomes.bypass_timers:
- description: Bypass all timer restrictions.
- children:
- huskhomes.bypass_timer: true
- huskhomes.rtp.bypass_cooldown: true
- huskhomes.basic:
- description: Access a basic pack of commands, good for Survival servers
- children:
- huskhomes.home: true
- huskhomes.sethome: true
- huskhomes.delhome: true
- huskhomes.edithome: true
- huskhomes.edithome.public: true
- huskhomes.publichome: true
- huskhomes.back: true
- huskhomes.back.death: true
- huskhomes.tpa: true
- huskhomes.tpahere: true
- huskhomes.spawn: true
- huskhomes.warp: true
- huskhomes.commands:
- description: Access all HuskHomes commands
- children:
- huskhomes.home: true
- huskhomes.sethome: true
- huskhomes.delhome: true
- huskhomes.edithome: true
- huskhomes.edithome.public: true
- huskhomes.publichome: true
- huskhomes.back: true
- huskhomes.back.death: true
- huskhomes.tp: true
- huskhomes.tphere: true
- huskhomes.tpa: true
- huskhomes.tpahere: true
- huskhomes.spawn: true
- huskhomes.spawn.set: true
- huskhomes.warp: true
- huskhomes.setwarp: true
- huskhomes.delwarp: true
- huskhomes.editwarp: true
- huskhomes.rtp: true
- huskhomes.about: true
- huskhomes.version_checker: true
- huskhomes.reload: true
- huskhomes.bypass_timer:
- description: Allows you to bypass the teleportation timer
- default: false
- huskhomes.home:
- description: Allows you to teleport to a home
- default: true
- huskhomes.home.other:
- description: Allows you to teleport to all player homes
- default: op
- huskhomes.sethome:
- description: Allows you to set homes
- default: true
- huskhomes.delhome:
- description: Allows you to delete a home
- default: true
- huskhomes.delhome.other:
- description: Allows you to delete any player home
- default: op
- huskhomes.delhome.all:
- description: Allows you to delete all your homes
- default: true
- huskhomes.warp:
- description: Allows you to teleport to a warp
- default: true
- huskhomes.warp.*:
- description: Lets you access all warps even if permission-restricted
- default: op
- huskhomes.setwarp:
- description: Allows you to set server warps
- default: op
- huskhomes.delwarp:
- description: Allows you to delete a server warp
- default: op
- huskhomes.delwarp.all:
- description: Allows you to delete all server warps
- default: op
- huskhomes.publichome:
- description: Allows you to teleport to public homes
- default: true
- huskhomes.edithome:
- description: Allows you to edit home settings
- default: true
- huskhomes.edithome.other:
- description: Allows you to edit home settings for any home
- default: op
- huskhomes.editwarp:
- description: Allows you to edit home information
- default: op
- huskhomes.back:
- description: Allows you to return to your last position
- default: true
- huskhomes.rtp:
- description: Allows you to randomly teleport
- default: true
- huskhomes.rtp.bypass_cooldown:
- description: Allows you to bypass the /rtp cooldown
- default: false
- huskhomes.about:
- description: View information about the plugin
- default: true
- huskhomes.reload:
- description: Reload the plugin configuration & messages files
- default: op
- huskhomes.version_checker:
- description: Check if the plugin is up-to-date
- default: op
- huskhomes.tp:
- description: Allows you to directly teleport to players or locations
- default: op
- huskhomes.tphere:
- description: Allows you to teleport players directly to your location
- default: op
- huskhomes.tprequest:
- description: Allows you to request to teleport to a player
- default: false
- children:
- - huskhomes.tpa
- - huskhomes.tpahere
- - huskhomes.tpaccept
- - huskhomes.tpdeny
- huskhomes.tpaccept:
- description: Allows you to accept teleport requests
- default: true
- huskhomes.tpdeny:
- description: Allows you to decline teleport requests
- default: true
- huskhomes.tpa:
- description: Allows you to request to teleport to a player
- default: true
- huskhomes.tpahere:
- description: Allows you to request a player to teleport to you
- default: true
- huskhomes.tpignore:
- description: Allows you to ingore teleport requests
- default: true
- huskhomes.tpoffline:
- description: Allows you to teleport to where players logged off
- default: op
- huskhomes.back.death:
- description: Allows you to return to where you died
- default: true
- huskhomes.spawn:
- description: Allows you to teleport to spawn
- default: true
- huskhomes.spawn.set:
- description: Allows you to set the spawn location
- default: op
- huskhomes.edithome.public:
- description: Allows you to make a home public
- default: true
- huskhomes.tpaall:
- description: Allows you to request everyone to teleport to you
- default: op
- huskhomes.tpall:
- description: Allows you to teleport everyone to you
- default: op
\ No newline at end of file