diff --git a/README.md b/README.md index e242d945..5ab2e296 100644 --- a/README.md +++ b/README.md @@ -1,94 +1,71 @@ -# [![HuskHomes Banner](images/banner-graphic.png)](https://github.com/WiIIiam278/HuskHomes2) -[![GitHub CI](https://img.shields.io/github/actions/workflow/status/WiIIiam278/HuskHomes2/java_ci.yml?branch=master&logo=github)](https://github.com/WiIIiam278/HuskHomes2/actions/workflows/java_ci.yml) -[![JitPack API](https://img.shields.io/jitpack/version/net.william278/HuskHomes2?color=%2300fb9a&label=api&logo=gradle)](https://jitpack.io/#net.william278/HuskHomes2) -[![Support Discord](https://img.shields.io/discord/818135932103557162.svg?label=&logo=discord&logoColor=fff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/tVYhJfyDWG) - -[Documentation, Guides & API](https://william278.net/docs/huskhomes/) · [Resource Page](https://www.spigotmc.org/resources/huskhomes.83767/) · [Bug Reports](https://github.com/WiIIiam278/HuskHomes2/issues) +

+ HuskHomes + + + + + + + + + +
+ + Spigot + — + + Setup + — + + Docs + — + + Issues + +

+
**HuskHomes** is a powerful, intuitive and flexible teleportation plugin for Spigot-based Minecraft servers. The plugin supports a wide array of features; from teleporting between players, teleport requests, public and private homes, warps, random teleporting and more. All of this is supported on standalone and cross-server setups; players can set home and teleport on and between multiple servers on a proxy network. ## Features -![Editing homes animation](images/edit-homes-animation.gif) +**⭐ Works cross-server** — Let players seamlessly teleport and set homes across your proxies network of servers using MySQL. -- Supports a wide array of commands players will understand in seconds. -- Simple and intuitive interface; no clunky GUIs! Instead, the plugin provides a robust clickable chat menu system to view and manage homes and warps. -- Supports teleporting to homes and players cross-server on a proxy network. -- Teleport requests (/tpa; /tpahere; /tpaccept; /tpdeny), supported through multiple servers +**⭐ Zero learning curve** — Your players already know how to use it! /sethome, /home, /tpa, /rtp—among others—are all built-in and easy-to-use. -![Teleport requests animation](images/teleport-requests-animation.gif) +**⭐ Quick and beautiful menus** — Sometimes, simple is better. No monolithic chest GUIs—instead, robust and beautiful interactive chat menus. -- Smart random teleport system to let your players get out into the wild quickly and safely -- Has a /back command to let players return to their previous position, or where they died if they have the right permissions -- Integrate your economy by configuring costs for teleporting, setting homes and random teleporting. -- Fully customisable plugin messages, with multi-language and custom color support via MineDown formatting -- Hooks up with your server's map (Dynmap, BlueMap) and analytics plugin (Plan) +**⭐ Great admin features** — Comes with all the classic admin commands—/tp and /warp—as well as robust tools for managing other players' homes. -![BlueMap hook screenshot](images/bluemap-hook.png) +**⭐ Plan & Web map plugin hooks** — Stay in touch with your community through home analytics via Plan and display homes on Dynmap or BlueMap. -- Set warps for your server with the /setwarp and /warp commands -- Set a spawn location with /setspawn and let players return to it with /spawn -- Perfect for a small server with friends, or a large multiple-server network! - -### Commands -Too many? Don't worry; you can easily disable the commands you don't need. -- /home, /sethome, /edithome, /homelist -- /publichome, /publichomelist -- /warp, /setwarp, /editwarp, /warplist -- /tpa, /tpahere, /tpaccept, /tpdeny -- /tp, /tphere, /tpall, /tpaall -- /spawn, /rtp, /back, /huskhomes -- [Full list & permissions](https://william278.net/docs/huskhomes/Commands) - -![Command list screenshot](images/command-list.png) -![Edit home menu screenshot](images/edit-home-menu.png) -![Teleport requests screenshot](images/teleport-requests.png) - -### Add-ons -* [HuskHomesPlaceholders](https://github.com/WiIIiam278/HuskHomesPlaceholders) (A PlaceholderAPI expansion for HuskHomes) -* [HuskHomesGUI](https://github.com/WiIIiam278/HuskHomesGUI) (GUI menus for viewing homes and warps) - -## Setup -### Requirements -* A Spigot-based Minecraft server (1.16.5 or higher, Java 16+) -* (For proxy network support) A proxy server (1.16+) and MySQL v8.0+ database -* (For optional redis support) A Redis database v5.0+ - -### Instructions -1. Place the plugin jar file in the `/plugins/` directory of your server(s). -2. Restart your server(s) to let HuskHomes generate its config file. -3. Configure the plugin to your liking by editing the config file. - * If you are using a proxy network, you will need to configure the plugin on each server, including specifying database credentials and enabling the `cross_server` mode. -4. Turn on your server(s) and enjoy! +**⭐ Extensible API & open-source** — Still not enough? Extend the plugin with the HuskHomes API. Or, submit a pull request—we're open-source! ## Building To build HuskHomes, simply run the following in the root of the repository: -``` + +```bash ./gradlew clean build ``` ## License -HuskHomes is licensed under [Apache-2.0 License](https://github.com/WiIIiam278/HuskHomes2/blob/master/LICENSE). +HuskHomes is licensed under the Apache 2.0 license. -## Translation +- [License](https://github.com/WiIIiam278/HuskHomes2/blob/master/LICENSE) + +## Translations Translations of the plugin locales are welcome to help make the plugin more accessible. Please submit a pull request with your translations as a `.yml` file. - [Locales Directory](https://github.com/WiIIiam278/HuskHomes2/tree/master/common/src/main/resources/locales) - [English Locales](https://github.com/WiIIiam278/HuskHomes2/tree/master/common/src/main/resources/locales/en-gb.yml) -## bStats -This plugin uses bStats to provide me with metrics about its usage: -- [bStats Metrics](https://bstats.org/plugin/bukkit/HuskHomes/8430) - -You can turn metric collection off by navigating to `~/plugins/bStats/config.yml` and editing the config to disable plugin metrics. - ## Links -- [Documentation, Guides & API](https://william278.net/docs/huskhomes/) -- [Resource Page](https://www.spigotmc.org/resources/huskhomes.83767/) -- [Bug Reports](https://github.com/WiIIiam278/HuskHomes2/issues) -- [Discord Support](https://discord.gg/tVYhJfyDWG) - +- [Docs](https://william278.net/docs/huskhomes/) — Read the plugin documentation! +- [Spigot](https://www.spigotmc.org/resources/huskhomes.83767/) — View the Spigot resource page (Also: [Polymart](https://polymart.org/resource/huskhomes.284/), [Modrinth](https://modrinth.com/plugin/huskhomes)) +- [Issues](https://github.com/WiIIiam278/HuskHomes2/issues) — File a bug report or feature request +- [Discord](https://discord.gg/tVYhJfyDWG) — Get help, ask questions +- [bStats](https://bstats.org/plugin/bukkit/HuskHomes/8430) — View plugin metrics --- -© [William278](https://william278.net/), 2022. Licensed under the Apache-2.0 License. +© [William278](https://william278.net/), 2023. Licensed under the Apache-2.0 License. diff --git a/build.gradle b/build.gradle index d4936eca..cd6378f9 100644 --- a/build.gradle +++ b/build.gradle @@ -41,8 +41,8 @@ allprojects { } dependencies { - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1' - testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.1' + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2' + testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.2' } test { diff --git a/bukkit/build.gradle b/bukkit/build.gradle index 4fa44c1d..19924322 100644 --- a/bukkit/build.gradle +++ b/bukkit/build.gradle @@ -2,12 +2,12 @@ dependencies { implementation project(path: ':common') implementation 'org.bstats:bstats-bukkit:3.0.0' - implementation 'io.papermc:paperlib:1.0.7' + implementation 'io.papermc:paperlib:1.0.8' implementation 'me.lucko:commodore:2.2' implementation 'net.kyori:adventure-platform-bukkit:4.2.0' compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT' - compileOnly 'org.jetbrains:annotations:23.1.0' + compileOnly 'org.jetbrains:annotations:24.0.0' compileOnly 'de.themoep:minedown-adventure:1.7.2-SNAPSHOT' compileOnly 'redis.clients:jedis:' + jedis_version compileOnly 'commons-io:commons-io:2.11.0' diff --git a/bukkit/src/main/java/net/william278/huskhomes/BukkitHuskHomes.java b/bukkit/src/main/java/net/william278/huskhomes/BukkitHuskHomes.java index ebe0cb4e..8c63461f 100644 --- a/bukkit/src/main/java/net/william278/huskhomes/BukkitHuskHomes.java +++ b/bukkit/src/main/java/net/william278/huskhomes/BukkitHuskHomes.java @@ -163,7 +163,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes { cache.initialize(database); // Prepare the home and warp position manager - this.savedPositionManager = new SavedPositionManager(database, cache, eventDispatcher, settings.allowUnicodeNames, settings.allowUnicodeDescriptions, settings.overwriteExistingHomesWarps); + this.savedPositionManager = new SavedPositionManager(this); // Initialize the RTP engine with the default normal distribution engine setRandomTeleportEngine(new NormalDistributionEngine(this)); @@ -191,7 +191,6 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes { } } } - getMapHook().ifPresent(mapHook -> savedPositionManager.setMapHook(mapHook)); } if (Bukkit.getPluginManager().getPlugin("Plan") != null) { pluginHooks.add(new PlanHook(this)); @@ -242,7 +241,6 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes { // Prepare migrators this.migrators = new ArrayList<>(); this.migrators.add(new LegacyMigrator(this)); - //todo EssentialsX // Hook into bStats metrics registerMetrics(METRICS_ID); diff --git a/common/build.gradle b/common/build.gradle index b15d8ba5..cf35d580 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -1,7 +1,7 @@ dependencies { implementation 'commons-io:commons-io:2.11.0' implementation 'de.themoep:minedown-adventure:1.7.2-SNAPSHOT' - implementation 'com.google.code.gson:gson:2.10' + implementation 'com.google.code.gson:gson:2.10.1' implementation 'net.william278:Annotaml:2.0.1' implementation 'net.william278:PagineDown:1.1' implementation 'net.william278:DesertWell:1.1' @@ -11,7 +11,7 @@ dependencies { exclude module: 'slf4j-api' } - compileOnly 'org.jetbrains:annotations:23.1.0' + compileOnly 'org.jetbrains:annotations:24.0.0' compileOnly 'com.google.guava:guava:31.1-jre' compileOnly 'redis.clients:jedis:' + jedis_version compileOnly 'org.xerial:sqlite-jdbc:' + sqlite_driver_version diff --git a/common/src/main/java/net/william278/huskhomes/position/SavedPositionManager.java b/common/src/main/java/net/william278/huskhomes/position/SavedPositionManager.java index fdc1ea47..aeddf4ea 100644 --- a/common/src/main/java/net/william278/huskhomes/position/SavedPositionManager.java +++ b/common/src/main/java/net/william278/huskhomes/position/SavedPositionManager.java @@ -1,14 +1,12 @@ package net.william278.huskhomes.position; import net.william278.huskhomes.Cache; -import net.william278.huskhomes.database.Database; -import net.william278.huskhomes.event.EventDispatcher; +import net.william278.huskhomes.HuskHomes; +import net.william278.huskhomes.config.Settings; import net.william278.huskhomes.hook.MapHook; import net.william278.huskhomes.player.User; import net.william278.huskhomes.util.RegexUtil; -import net.william278.huskhomes.config.Settings; import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; import java.util.ArrayList; import java.util.Optional; @@ -19,60 +17,10 @@ import java.util.concurrent.CompletableFuture; */ public class SavedPositionManager { - /** - * The {@link Database} implementation used to add homes to the database - */ - private final Database database; + private final HuskHomes plugin; - /** - * The {@link Cache} the holds cached home and warp data, updated when setting home - */ - private final Cache cache; - - /** - * The {@link EventDispatcher} used to dispatch save and delete events - */ - private final EventDispatcher eventDispatcher; - - /** - * The {@link MapHook} used to update the map when a home or warp is set - */ - @Nullable - private MapHook mapHook; - - /** - * Whether to allow unicode characters in SavedPosition names - */ - private final boolean allowUnicodeNames; - - /** - * Whether to allow unicode characters in SavedPosition descriptions - */ - private final boolean allowUnicodeDescriptions; - - /** - * Whether to automatically relocate existing homes and warps when a user tries to set a home/warp with the same name - */ - private final boolean overwriteExistingHomesWarps; - - public SavedPositionManager(@NotNull Database database, @NotNull Cache cache, @NotNull EventDispatcher eventDispatcher, - boolean allowUnicodeNames, boolean allowUnicodeDescriptions, - boolean overwriteExistingHomesWarps) { - this.database = database; - this.cache = cache; - this.eventDispatcher = eventDispatcher; - this.allowUnicodeNames = allowUnicodeNames; - this.allowUnicodeDescriptions = allowUnicodeDescriptions; - this.overwriteExistingHomesWarps = overwriteExistingHomesWarps; - } - - /** - * Set the {@link MapHook} used to update the map when a home or warp is set - * - * @param mapHook the {@link MapHook} to set - */ - public void setMapHook(@NotNull MapHook mapHook) { - this.mapHook = mapHook; + public SavedPositionManager(@NotNull HuskHomes plugin) { + this.plugin = plugin; } /** @@ -86,29 +34,31 @@ public class SavedPositionManager { */ public CompletableFuture setHome(@NotNull PositionMeta homeMeta, @NotNull User homeOwner, @NotNull Position position) { - return database.getHome(homeOwner, homeMeta.name).thenApplyAsync(optionalHome -> + return plugin.getDatabase().getHome(homeOwner, homeMeta.name).thenApplyAsync(optionalHome -> validateMeta(homeMeta).map(resultType -> new SaveResult(resultType, Optional.empty())).orElseGet(() -> { if (optionalHome.isEmpty()) { // Handle setting a new home final Home home = new Home(position, homeMeta, homeOwner); - return eventDispatcher.dispatchHomeSaveEvent(home).thenApplyAsync(event -> { + return plugin.getEventDispatcher().dispatchHomeSaveEvent(home).thenApplyAsync(event -> { if (event.isCancelled()) { return new SaveResult(SaveResult.ResultType.FAILED_EVENT_CANCELLED, Optional.empty()); } + final Cache cache = plugin.getCache(); cache.homes.putIfAbsent(home.owner.uuid, new ArrayList<>()); cache.homes.get(home.owner.uuid).add(home.meta.name); cache.privateHomeLists.remove(home.owner.username); - return database.saveHome(home).thenApplyAsync(value -> + return plugin.getDatabase().saveHome(home).thenApplyAsync(value -> new SaveResult(SaveResult.ResultType.SUCCESS, Optional.of(home))).join(); }).join(); - } else if (overwriteExistingHomesWarps) { + } else if (plugin.getSettings().overwriteExistingHomesWarps) { // Handle overwriting existing homes if the option is enabled final Home existingHome = optionalHome.get(); updateHomePosition(existingHome, position).thenApplyAsync(result -> { if (result) { - if (mapHook != null && existingHome.isPublic) { - mapHook.updateHome(existingHome); + if (existingHome.isPublic) { + plugin.getMapHook().ifPresent(hook -> hook.updateHome(existingHome)); } + return new SaveResult(SaveResult.ResultType.SUCCESS_OVERWRITTEN, Optional.of(existingHome)); } return new SaveResult(SaveResult.ResultType.FAILED_EVENT_CANCELLED, Optional.empty()); @@ -127,23 +77,22 @@ public class SavedPositionManager { * if the home name was invalid. */ public CompletableFuture deleteHome(@NotNull User homeOwner, @NotNull String homeName) { - return database.getHome(homeOwner, homeName).thenApplyAsync(optionalHome -> { + return plugin.getDatabase().getHome(homeOwner, homeName).thenApplyAsync(optionalHome -> { if (optionalHome.isPresent()) { - return eventDispatcher.dispatchHomeDeleteEvent(optionalHome.get()).thenApplyAsync(event -> { + return plugin.getEventDispatcher().dispatchHomeDeleteEvent(optionalHome.get()).thenApplyAsync(event -> { if (event.isCancelled()) { return false; } final Home home = event.getHome(); - return database.deleteHome(home.uuid).thenApplyAsync(ignored -> { + return plugin.getDatabase().deleteHome(home.uuid).thenApplyAsync(ignored -> { + final Cache cache = plugin.getCache(); cache.homes.computeIfPresent(home.owner.uuid, (ownerUUID, homeNames) -> { homeNames.remove(home.meta.name); return homeNames; }); cache.privateHomeLists.remove(home.owner.username); cache.publicHomeLists.clear(); - if (mapHook != null) { - mapHook.removeHome(home); - } + plugin.getMapHook().ifPresent(hook -> hook.removeHome(home)); return true; }).join(); }).join(); @@ -153,15 +102,14 @@ public class SavedPositionManager { } public CompletableFuture deleteAllHomes(@NotNull User user) { - return CompletableFuture.supplyAsync(() -> eventDispatcher.dispatchDeleteAllHomesEvent(user).join().isCancelled()) - .thenApply(cancelled -> database.deleteAllHomes(user) + return CompletableFuture.supplyAsync(() -> plugin.getEventDispatcher().dispatchDeleteAllHomesEvent(user).join().isCancelled()) + .thenApply(cancelled -> plugin.getDatabase().deleteAllHomes(user) .thenApply(result -> { + final Cache cache = plugin.getCache(); cache.homes.remove(user.uuid); cache.privateHomeLists.remove(user.username); cache.publicHomeLists.clear(); - if (mapHook != null) { - mapHook.clearHomes(user); - } + plugin.getMapHook().ifPresent(hook -> hook.clearHomes(user)); return result; }).join()); } @@ -175,27 +123,28 @@ public class SavedPositionManager { */ public CompletableFuture updateHomeMeta(@NotNull Home home, @NotNull PositionMeta newHomeMeta) { return CompletableFuture.supplyAsync(() -> { - if (!home.meta.name.equals(newHomeMeta.name) && database.getHome(home.owner, newHomeMeta.name).join().isPresent()) { + if (!home.meta.name.equals(newHomeMeta.name) && plugin.getDatabase().getHome(home.owner, newHomeMeta.name).join().isPresent()) { return new SaveResult(SaveResult.ResultType.FAILED_DUPLICATE, Optional.empty()); } final String existingHomeName = home.meta.name; return validateMeta(newHomeMeta).map(resultType -> new SaveResult(resultType, Optional.empty())).orElseGet(() -> { home.meta = newHomeMeta; - return eventDispatcher.dispatchHomeSaveEvent(home).thenApplyAsync(event -> { + return plugin.getEventDispatcher().dispatchHomeSaveEvent(home).thenApplyAsync(event -> { if (event.isCancelled()) { return new SaveResult(SaveResult.ResultType.FAILED_EVENT_CANCELLED, Optional.empty()); } + final Cache cache = plugin.getCache(); if (!existingHomeName.equals(newHomeMeta.name)) { cache.homes.get(home.owner.uuid).remove(existingHomeName); cache.homes.get(home.owner.uuid).add(newHomeMeta.name); } cache.privateHomeLists.remove(home.owner.username); cache.publicHomeLists.clear(); - if (home.isPublic && mapHook != null) { - mapHook.updateHome(home); + if (home.isPublic) { + plugin.getMapHook().ifPresent(hook -> hook.updateHome(home)); } - return database.saveHome(home).thenApplyAsync(value -> + return plugin.getDatabase().saveHome(home).thenApplyAsync(value -> new SaveResult(SaveResult.ResultType.SUCCESS, Optional.of(home))).join(); }).join(); }); @@ -212,14 +161,14 @@ public class SavedPositionManager { */ public CompletableFuture updateHomePosition(@NotNull Home home, @NotNull Position newPosition) { home.update(newPosition); - return eventDispatcher.dispatchHomeSaveEvent(home).thenApplyAsync(event -> { + return plugin.getEventDispatcher().dispatchHomeSaveEvent(home).thenApplyAsync(event -> { if (event.isCancelled()) { return false; } - if (home.isPublic && mapHook != null) { - mapHook.updateHome(home); + if (home.isPublic) { + plugin.getMapHook().ifPresent(hook -> hook.updateHome(home)); } - return database.saveHome(home).thenApplyAsync(ignored -> true).join(); + return plugin.getDatabase().saveHome(home).thenApplyAsync(ignored -> true).join(); }); } @@ -232,26 +181,23 @@ public class SavedPositionManager { */ public CompletableFuture updateHomePrivacy(@NotNull Home home, final boolean isHomePublic) { home.isPublic = isHomePublic; - return eventDispatcher.dispatchHomeSaveEvent(home).thenApplyAsync(event -> { + return plugin.getEventDispatcher().dispatchHomeSaveEvent(home).thenApplyAsync(event -> { if (event.isCancelled()) { return false; } // Save the home to database and propagate updates to cache and map hook - return database.saveHome(home).thenApplyAsync(ignored -> { + return plugin.getDatabase().saveHome(home).thenApplyAsync(ignored -> { + final Cache cache = plugin.getCache(); if (home.isPublic) { cache.publicHomes.putIfAbsent(home.owner.username, new ArrayList<>()); cache.publicHomes.get(home.owner.username).add(home.meta.name); - if (mapHook != null) { - mapHook.updateHome(home); - } + plugin.getMapHook().ifPresent(hook -> hook.updateHome(home)); } else { if (cache.publicHomes.containsKey(home.owner.username)) { cache.publicHomes.get(home.owner.username).remove(home.meta.name); } - if (mapHook != null) { - mapHook.removeHome(home); - } + plugin.getMapHook().ifPresent(hook -> hook.removeHome(home)); } cache.privateHomeLists.remove(home.owner.username); cache.publicHomeLists.clear(); @@ -269,31 +215,28 @@ public class SavedPositionManager { * @return a future supplying the {@link SaveResult}; the result of setting the warp */ public CompletableFuture setWarp(@NotNull PositionMeta warpMeta, @NotNull Position position) { - return database.getWarp(warpMeta.name).thenApplyAsync(optionalWarp -> + return plugin.getDatabase().getWarp(warpMeta.name).thenApplyAsync(optionalWarp -> validateMeta(warpMeta).map(resultType -> new SaveResult(resultType, Optional.empty())).orElseGet(() -> { if (optionalWarp.isEmpty()) { // Handle setting new warps final Warp warp = new Warp(position, warpMeta); - return eventDispatcher.dispatchWarpSaveEvent(warp).thenApplyAsync(event -> { + return plugin.getEventDispatcher().dispatchWarpSaveEvent(warp).thenApplyAsync(event -> { if (event.isCancelled()) { return new SaveResult(SaveResult.ResultType.FAILED_EVENT_CANCELLED, Optional.empty()); } + final Cache cache = plugin.getCache(); cache.warps.add(warp.meta.name); cache.warpLists.clear(); - if (mapHook != null) { - mapHook.updateWarp(warp); - } - return database.saveWarp(warp).thenApplyAsync(ignored -> + plugin.getMapHook().ifPresent(hook -> hook.updateWarp(warp)); + return plugin.getDatabase().saveWarp(warp).thenApplyAsync(ignored -> new SaveResult(SaveResult.ResultType.SUCCESS, Optional.of(warp))).join(); }).join(); - } else if (overwriteExistingHomesWarps) { + } else if (plugin.getSettings().overwriteExistingHomesWarps) { // Handle overwriting existing warps if the option is enabled final Warp existingWarp = optionalWarp.get(); updateWarpPosition(existingWarp, position).thenApplyAsync(result -> { if (result) { - if (mapHook != null) { - mapHook.updateWarp(existingWarp); - } + plugin.getMapHook().ifPresent(hook -> hook.updateWarp(existingWarp)); return new SaveResult(SaveResult.ResultType.SUCCESS_OVERWRITTEN, Optional.of(existingWarp)); } return new SaveResult(SaveResult.ResultType.FAILED_EVENT_CANCELLED, Optional.empty()); @@ -311,21 +254,20 @@ public class SavedPositionManager { * if the warp name was invalid. */ public CompletableFuture deleteWarp(@NotNull String warpName) { - return database.getWarp(warpName).thenApplyAsync(optionalWarp -> { + return plugin.getDatabase().getWarp(warpName).thenApplyAsync(optionalWarp -> { if (optionalWarp.isPresent()) { - return eventDispatcher.dispatchWarpDeleteEvent(optionalWarp.get()).thenApplyAsync(event -> { + return plugin.getEventDispatcher().dispatchWarpDeleteEvent(optionalWarp.get()).thenApplyAsync(event -> { if (event.isCancelled()) { return false; } // Delete the warp from database and propagate updates to cache and map hook final Warp warp = event.getWarp(); - return database.deleteWarp(warp.uuid).thenApplyAsync(ignored -> { + return plugin.getDatabase().deleteWarp(warp.uuid).thenApplyAsync(ignored -> { + final Cache cache = plugin.getCache(); cache.warps.remove(warp.meta.name); cache.warpLists.clear(); - if (mapHook != null) { - mapHook.removeWarp(warp); - } + plugin.getMapHook().ifPresent(hook -> hook.removeWarp(warp)); return true; }).join(); }).join(); @@ -335,13 +277,12 @@ public class SavedPositionManager { } public CompletableFuture deleteAllWarps() { - return CompletableFuture.supplyAsync(() -> eventDispatcher.dispatchDeleteAllWarpsEvent().join().isCancelled()) - .thenApply(cancelled -> database.deleteAllWarps() + return CompletableFuture.supplyAsync(() -> plugin.getEventDispatcher().dispatchDeleteAllWarpsEvent().join().isCancelled()) + .thenApply(cancelled -> plugin.getDatabase().deleteAllWarps() .thenApply(result -> { - cache.warps.clear(); - if (mapHook != null) { - mapHook.clearWarps(); - } + plugin.getCache().warps.clear(); + plugin.getCache().warpLists.clear(); + plugin.getMapHook().ifPresent(MapHook::clearWarps); return result; }).join()); } @@ -355,26 +296,26 @@ public class SavedPositionManager { */ public CompletableFuture updateWarpMeta(@NotNull Warp warp, @NotNull PositionMeta newWarpMeta) { return CompletableFuture.supplyAsync(() -> { - if (!warp.meta.name.equals(newWarpMeta.name) && database.getWarp(newWarpMeta.name).join().isPresent()) { + if (!warp.meta.name.equals(newWarpMeta.name) && plugin.getDatabase().getWarp(newWarpMeta.name).join().isPresent()) { return new SaveResult(SaveResult.ResultType.FAILED_DUPLICATE, Optional.empty()); } final String existingWarpName = warp.meta.name; return validateMeta(newWarpMeta).map(resultType -> new SaveResult(resultType, Optional.empty())).orElseGet(() -> { warp.meta = newWarpMeta; - return eventDispatcher.dispatchWarpSaveEvent(warp).thenApplyAsync(event -> { + return plugin.getEventDispatcher().dispatchWarpSaveEvent(warp).thenApplyAsync(event -> { if (event.isCancelled()) { return new SaveResult(SaveResult.ResultType.FAILED_EVENT_CANCELLED, Optional.empty()); } + + final Cache cache = plugin.getCache(); if (!existingWarpName.equals(newWarpMeta.name)) { cache.warps.remove(existingWarpName); cache.warps.add(newWarpMeta.name); } cache.warpLists.clear(); - if (mapHook != null) { - mapHook.updateWarp(warp); - } - return database.saveWarp(warp).thenApplyAsync(value -> + plugin.getMapHook().ifPresent(hook -> hook.updateWarp(warp)); + return plugin.getDatabase().saveWarp(warp).thenApplyAsync(value -> new SaveResult(SaveResult.ResultType.SUCCESS, Optional.of(warp))).join(); }).join(); }); @@ -391,14 +332,12 @@ public class SavedPositionManager { */ public CompletableFuture updateWarpPosition(@NotNull Warp warp, @NotNull Position newPosition) { warp.update(newPosition); - return eventDispatcher.dispatchWarpSaveEvent(warp).thenApplyAsync(event -> { + return plugin.getEventDispatcher().dispatchWarpSaveEvent(warp).thenApplyAsync(event -> { if (event.isCancelled()) { return false; } - if (mapHook != null) { - mapHook.updateWarp(warp); - } - return database.saveWarp(warp).thenApplyAsync(ignored -> true).join(); + plugin.getMapHook().ifPresent(hook -> hook.updateWarp(warp)); + return plugin.getDatabase().saveWarp(warp).thenApplyAsync(ignored -> true).join(); }); } @@ -413,7 +352,7 @@ public class SavedPositionManager { if (positionMeta.name.length() > 16) { return Optional.of(SaveResult.ResultType.FAILED_NAME_LENGTH); } - if (!allowUnicodeNames) { + if (!plugin.getSettings().allowUnicodeNames) { if (!RegexUtil.NAME_PATTERN.matcher(positionMeta.name).matches()) { return Optional.of(SaveResult.ResultType.FAILED_NAME_CHARACTERS); } @@ -424,7 +363,7 @@ public class SavedPositionManager { if (positionMeta.description.length() > 255) { return Optional.of(SaveResult.ResultType.FAILED_DESCRIPTION_LENGTH); } - if (!allowUnicodeDescriptions) { + if (!plugin.getSettings().allowUnicodeDescriptions) { if (!RegexUtil.DESCRIPTION_PATTERN.matcher(positionMeta.description).matches()) { return Optional.of(SaveResult.ResultType.FAILED_DESCRIPTION_CHARACTERS); } diff --git a/common/src/main/resources/locales/tr-tr.yml b/common/src/main/resources/locales/tr-tr.yml new file mode 100644 index 00000000..b4cbe750 --- /dev/null +++ b/common/src/main/resources/locales/tr-tr.yml @@ -0,0 +1,173 @@ +teleporting_offline_player: '[Sizi en son %1% oturumunun kapatıldığı yere ışınlıyoruz…](#00fb9a)' +teleporting_warmup_start: '[%1%](#00fb9a bold) [saniye içinde ışınlanacaksınız, lütfen hareketsiz durun…](#00fb9a)' +teleporting_cancelled_movement: '[Işınlanma iptal edildi hareket ettiniz!](#ff7e5e)' +teleporting_cancelled_damage: '[Işınlanma iptal edildi hasar aldınız!](#ff7e5e)' +teleporting_complete: '[Işınlanma tamamlandı!](#00fb9a)' +teleporting_action_bar_warmup: '[%1%](#00fb9a bold) [içinde ışınlanıyor…](#00fb9a)' +teleporting_action_bar_processing: '[Işınlanılıyor…](#00fb9a)' +teleporting_action_bar_cancelled: '[Işınlanma iptal edildi!](#ff7e5e)' +teleporting_other_complete: '[%1% den %2% ye ışınlanıldı.](#00fb9a)' +teleporting_other_complete_position: '[%1% ⚐ konumuna ışınlandı x: %2%, y: %3%, z: %4%.](#00fb9a)' +teleporting_all_players: '[%1%](#00fb9a bold) [oyuncu(lar) konumunuza ışınlanıyor……](#00fb9a)' +teleporting_random_generation: '[Sizi ışınlamak için güvenli bir rasgele konum aranıyor…](#00fb9a)' +tpa_request_sent: '[%1%](#00fb9a bold) [hedefine ışınlanmak için bir ışınlanma isteği gönderdiniz.](#00fb9a)' +tpahere_request_sent: '[%1%](#00fb9a bold) [adlı oyuncunun size ışınlanmasını isteyen bir ışınlanma isteği gönderdiniz.](#00fb9a)' +tpaall_request_sent: '[%1%](#00fb9a bold) [oyuncunun size ışınlanmasını isteyen bir ışınlanma isteği gönderdiniz.](#00fb9a)' +tpa_request_received: '[%1%](#00fb9a bold) [size ışınlanmak istiyor.](#00fb9a)' +tpahere_request_received: '[%1%](#00fb9a bold)[, ona ışınlanmanızı istiyor.](#00fb9a)' +teleport_request_buttons: '[Seçenekler:](gray) [[✔ Kabul et…]](#00fb9a show_text=�fb9a&Işınlanma isteğini kabul et\n&8%1% adlı oyuncunun isteğini kabul etmek için tıklayın run_command=/huskhomes:tpaccept %1%) [[❌ Reddet…]](#ff3300 show_text=&#ff3300&Işınlanmayı reddet request\n&8%1% adlı oyuncunun isteğini reddetmek için tıklayın run_command=/huskhomes:tpdeny %1%)' +teleport_request_accepted_confirmation: '[%1% adlı oyuncunun ışınlanma isteğini kabul ettiniz!](#00fb9a)' +teleport_request_declined_confirmation: '[%1% adlı oyuncunun ışınlanma isteğini reddettiniz.](#ff7e5e)' +teleport_request_accepted: '[%1% ışınlanma isteğinizi kabul etti!](#00fb9a)' +teleport_request_declined: '[%1% ışınlanma isteğinizi reddetti.](#ff7e5e)' +tpignore_toggle_on: '[Artık gelen ışınlanma istekleri](#00fb9a) [yok sayılıyor](#00fb9a bold) %1%' +tpignore_toggle_off: '[Artık gelen ışınlanma istekleri](#00fb9a) [dinleniyor](#00fb9a bold) %1%' +tpignore_on_notification: '[Şu anda gelen ışınlanma isteklerini görmezden geliyorsunuz!](gray) %1%' +tpignore_toggle_button: '[[🔔 Değiştir…]](#ffc43b show_text=&#ffc43b&Değiştirmek için tıkla:\n&7Gelen ışınlanma isteklerini yok saymak/dinlemek arasında geçiş yap run_command=/huskhomes:tpignore)' +edit_home_menu_title: '[%1%](#00fb9a bold) [evinizin ayrıntıları görüntüleniyor:](#00fb9a)' +edit_home_menu_title_other: '[Viewing details for %1%''s home,](#00fb9a) [%2%](#00fb9a bold)[:](#00fb9a)' +edit_home_menu_metadata_private: '[⌚ %1%](#999999-#ababab show_text=&7Zaman Damgasını Ayarla:\n&8Ev ayarlandıysa) [⚡ %2%](#ababab-#c7c7c7 show_text=&7Ev ID:\n&8%3%) [∅ Özel Ev](#ff9f0f show_text=&#ff9f0f&Gizlilik:\n&8Ev sahibine özeldir)' +edit_home_menu_metadata_public: '[⌚ %1%](#999999-#ababab show_text=&7Zaman Damgasını Ayarla:\n&8Ev ayarlandıysa) [⚡ %2%](#ababab-#c7c7c7 show_text=&7Ev ID:\n&8%3%) [☀ Herkese Açık Ev](#6fff00 show_text=fff00&Gizlilik:\n&8Herkes eve ışınlanabilir)' +edit_home_menu_description: '[ℹ %1%](#c160ff-#b43fff show_text=&#c160ff&Açıklama:\n&8%2%)\n' +edit_home_menu_world: '[⭘ %1%](#3b76ff-#5286ff show_text=b76ff&Dünya:\n&8Evin kurulduğu dünya)' +edit_home_menu_world_server: '[⭘ %1%](#3b76ff-#477fff show_text=b76ff&Dünya:\n&8Evin kurulduğu dünya) [☁ %2%](#477fff-#5286ff show_text=b76ff&Sunucu:\n&8Evin kurulduğu sunucu)' +edit_home_menu_coordinates: '[⚐ x: %1%, y: %2%, z: %3%](#ffc43b-#f5c962 show_text=&#ffc43b&Koordinatlar:\n&8Evin dünyadaki konumu\n&8yaw: %4%, pitch: %5%)\n' +edit_home_menu_use_buttons: '[Kullan:](gray) [[⏩ Işınlanma…]](#00fb9a show_text=&7Bu eve ışınlanmak için tıklayın run_command=/huskhomes:home %1%)' +edit_home_menu_manage_buttons: '[Yönet:](gray) [[❌ Sil…]](#ff3300 show_text=&7Bu evi silmek için tıklayın\n&#ff3300&⚠ Bu geri alınamaz! suggest_command=/huskhomes:delhome %1%) [[⚐ Taşı…]](#ffc43b-#f5c962 show_text=&7Bu evi konumunuza taşımak için tıklayın run_command=/huskhomes:edithome %1% relocate -m) %2%' +edit_home_menu_privacy_button_public: '[[☀ Herkese Açık Yap…]](#6fff00 show_text=&7Bu evi herkese açık yapmak için tıklayın run_command=/huskhomes:edithome %1% privacy -m)' +edit_home_menu_privacy_button_private: '[[∅ Özel Yap…]](#ff9f0f show_text=&7Bu evi özel yapmak için tıklayın run_command=/huskhomes:edithome %1% privacy -m)' +edit_home_menu_meta_edit_buttons: '[Düzenle:](gray) [[✎ Yeniden isimlendir…]](#c160ff-#bb50ff show_text=&7Yeniden adlandırma komutunu önermek için tıklayın suggest_command=/huskhomes:edithome %1% rename ) [[ℹ Açıklama…]](#bb50ff-#b43fff show_text=&7Açıklamayı düzenle komutunu önermek için tıklayın suggest_command=/huskhomes:edithome %1% description )' +edit_home_privacy_public_success: '[%1%](#00fb9a bold) [eviniz başarıyla halka açıldı](#00fb9a)' +edit_home_privacy_public_success_other: '[%1% adlı oyuncunun evi](#00fb9a) [%2%](#00fb9a bold) [başarıyla herkese açıldı.](#00fb9a)' +edit_home_privacy_private_success: '[%1%](#00fb9a bold) [eviniz başarıyla özelleştirildi.](#00fb9a)' +edit_home_privacy_private_success_other: '[%1% adlı oyuncnun evi başarıyla](#00fb9a) [%2%](#00fb9a bold) [özel yapıldı.](#00fb9a)' +edit_home_update_location: '[%1%](#00fb9a bold) [eviniz mevcut konumunuza yeniden yerleştirildi.](#00fb9a)' +edit_home_update_location_other: '[%1% adlı oyuncunun evi](#00fb9a) [%2%](#00fb9a bold)[mevcut konumunuza yeniden yerleştirildi.](#00fb9a)' +edit_home_update_description: '[Evinizin açıklaması başarıyla değiştirildi, %1%:](#00fb9a) \n[←](white) [Eski:](#00fb9a) ["%2%"](gray)\n[→](white) [Yeni:](#00fb9a) ["%3%" ](gray)' +edit_home_update_description_other: '[%1% adlı oyuncunun evinin açıklaması başarıyla değiştirildi, %2%:](#00fb9a) \n[←](white) [Eski:](#00fb9a) ["%3%"](gray)\n[→](white) [Yeni:](#00fb9a) ["%4%" ](gray)' +edit_home_update_name: '[Eviniz başarıyla yeniden adlandırıldı: %1% →](#00fb9a) [%2%](#00fb9a bold)' +edit_home_update_name_other: '[%1% adlı oyuncunun evinin adı başarıyla değiştirildi: %2% →](#00fb9a) [%3%](#00fb9a bold)' +edit_warp_menu_title: '[%1%](#00fb9a bold) [warpının ayrıntıları gösteriliyor:](#00fb9a)' +edit_home_menu_metadata: '[⌚ %1%](#999999-#ababab show_text=&7Zaman Damgasını Ayarla:\n&8Warp ayarlandıysa) [⚡ %2%](#ababab-#c7c7c7 show_text=&7Warp ID:\n&8%3%)' +edit_warp_menu_description: '[ℹ %1%](#c160ff-#b43fff show_text=&#c160ff&Açıklama:\n&8%2%)\n' +edit_warp_menu_world: '[⭘ %1%](#3b76ff-#5286ff show_text=b76ff&Dünya:\n&8Warpın ayarlandığı dünya' +edit_warp_menu_world_server: '[⭘ %1%](#3b76ff-#477fff show_text=b76ff&Dünya:\n&8Warpın ayarlandığı dünya) [☁ %2%](#477fff-#5286ff show_text=b76ff&Sunucu:\n&8Warpın ayarlandığı sunucu)' +edit_warp_menu_coordinates: '[⚐ x: %1%, y: %2%, z: %3%](#ffc43b-#f5c962 show_text=&#ffc43b&Koordinatlar:\n&8Warpın dünyadaki konumu\n&8yaw: %4%, pitch: %5%)\n' +edit_warp_menu_use_buttons: '[Use:](gray) [[⏩ Işınlanma…]](#00fb9a show_text=&7Bu warpa ışınlanmak için tıklayın run_command=/huskhomes:warp %1%)' +edit_warp_menu_manage_buttons: '[Yönet:](gray) [[❌ Sil…]](#ff3300 show_text=&7Bu warpı silmek için tıklayın\n&#ff3300&⚠ Bu geri alınamaz! suggest_command=/huskhomes:delwarp %1%) [[⚐ Taşı…]](#ffc43b-#f5c962 show_text=&7Bu warpı konumunuza taşımak için tıklayın run_command=/huskhomes:editwarp %1% relocate -m)' +edit_warp_menu_meta_edit_buttons: '[Düzenle:](gray) [[✎ Yeniden isimlendir…]](#c160ff-#bb50ff show_text=&7Yeniden adlandırma komutunu önermek için tıklayın suggest_command=/huskhomes:editwarp %1% rename ) [[ℹ Açıklama…]](#bb50ff-#b43fff show_text=&7Açıklamayı düzenle komutunu önermek için tıklayın suggest_command=/huskhomes:editwarp %1% description )' +edit_warp_update_location: '[Warp](#00fb9a) [%1%](#00fb9a bold) [mevcut konumunuza yeniden yerleştirildi.](#00fb9a)' +edit_warp_update_description: '[Warpın açıklaması başarıyla değiştirildi %1%:](#00fb9a) \n[←](white) [Eski:](#00fb9a) ["%2%"](gray)\n[→](white) [Yeni:](#00fb9a) ["%3%" ](gray)' +edit_warp_update_name: '[Warp başarıyla yeniden adlandırıldı: %1% →](#00fb9a) [%2%](#00fb9a bold)' +home_list_page_title: '[%1%''in Evleri:](#00fb9a) [(%2%-%3% of](#00fb9a) [%4%](#00fb9a bold)[)](#00fb9a)\n' +public_home_list_page_title: '[☀ Herkese Açık Evler:](#00fb9a) [(%1%-%2% of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n' +warp_list_page_title: '[Warplar:](#00fb9a) [(%1%-%2% of](#00fb9a) [%3%](#00fb9a bold)[)](#00fb9a)\n' +command_list_title: '[HuskHomes](#00fb9a bold) [| Komut Listesi](#00fb9a)\n' +home_list_item: '[[%1%]](show_text=�fb9a&%1%\n&7ℹ %3% run_command=/huskhomes:edithome %2%)' +public_home_list_item: '[[%1%]](show_text=�fb9a&%1%\n&7☻ %3%\n&7ℹ %4% run_command=/huskhomes:publichome %2%)' +warp_list_item: '[[%1%]](show_text=�fb9a&%1%\n&7ℹ %2% run_command=/huskhomes:warp %1%)' +command_list_item: '[/%1%](#00fb9a show_text=&7Komut önermek için tıklayın suggest_command=/%1%) [%2%](gray show_text=�fb9a&/%1%\n&7%3%)' +list_item_divider: ' [•](gray) ' +list_footer: '\n%1%[Sayfa](#00fb9a) [%2%](#00fb9a)/[%3%](#00fb9a)%4% %5%' +list_previous_page_button: '[◀](white show_text=&7Önceki sayfayı görüntüle run_command=%2% %1%) ' +list_next_page_button: ' [▶](white show_text=&7Sonraki sayfayı görüntüle run_command=%2% %1%)' +list_page_jumpers: '(%1%)' +list_page_jumper_button: '[%1%](show_text=&7Sayfaya atla %1% run_command=%2% %1%)' +list_page_jumper_current_page: '[%1%](#00fb9a)' +list_page_jumper_separator: ' ' +list_page_jumper_group_separator: '…' +home_deleted: '[%1%](#00fb9a bold) [eviniz başarıyla silindi](#00fb9a)' +home_deleted_other: '[%1% adlı oyuncunun evi](#00fb9a) [%2%](#00fb9a bold) [tarafından başarıyla silindi](#00fb9a)' +warp_deleted: '[%1%](#00fb9a bold) [warp başarıyla silindi](#00fb9a)' +set_home_used_free_slots: '[ℹ Ücretsiz giriş yuvalarınızın %1% tamamını kullandınız. Ek evlerin ayarlanması her birinin maliyeti %2% olacak.](gray)' +set_home_success: '[%1%](#00fb9a bold) [adında yeni bir ev başarıyla ayarlandı](#00fb9a)' +set_warp_success: '[%1%](#00fb9a bold) [adında yeni bir warp başarıyla ayarlandı](#00fb9a)' +set_spawn_success: '[Spawn konumu mevcut konumunuzla güncellendi.](#00fb9a)' +spawn_warp_default_description: 'Sunucunun /spawn konumu' +item_no_description: '(Açıklama yok)' +delete_all_homes_confirm: '[Uyarı:](#ff3300) [Tüm evlerinizi silmek istediğinizden emin misiniz?](#ff7e5e)\n[Onayladıktan sonra, onları kurtarmak mümkün olmayacak.](gray)\n[→](gray) [[Onayla]](#ff3300 show_text=&#ff3300&Silme işlemini onaylamak için tıklayın. Bu geri alınamaz. run_command=/delhome all confirm)' +delete_all_warps_confirm: '[Uyarı:](#ff3300) [Tüm warpları silmek istediğinizden emin misiniz?](#ff7e5e)\n[Onayladıktan sonra, onları kurtarmak mümkün olmayacak.](gray)\n[→](gray) [[Onayla]](#ff3300 show_text=&#ff3300&Silme işlemini onaylamak için tıklayın. Bu geri alınamaz. run_command=/delwarp all confirm)' +delete_all_homes_success: '[Başarıyla](#00fb9a) [%1%](#00fb9a bold) [ev(ler) silindi.](#00fb9a)' +delete_all_warps_success: '[Başaryla](#00fb9a) [%1%](#00fb9a bold) [warp(lar) silindi.](#00fb9a)' +economy_action_additional_home_slot: '[ℹ Ek bir ev ayarlamak için %1% harcadınız.](gray)' +economy_action_make_home_public: '[ℹ Evinizi herkese açık hale getirmek için %1% harcadınız.](gray)' +economy_action_random_teleport: '[ℹ Rastgele ışınlanmak için %1% harcadınız.](gray)' +economy_action_back_command: '[ℹ Son konumunuza dönmek için %1% harcadınız.](gray)' +return_by_death_notification: '[Öldüğün yere dön?](gray) [[⏪ Işınlanma…]](#00fb9a show_text=�fb9a&Işınlanmak için tıklayın\n&7Öldüğün yere dön run_command=/huskhomes:back)' +error_home_name_taken: '[Hata:](#ff3300) [Bu ada sahip bir eviniz zaten var.](#ff7e5e)' +error_home_name_length: '[Hata:](#ff3300) [Ev adları en fazla 16 karakter içerebilir!](#ff7e5e)' +error_home_name_characters: '[Hata:](#ff3300) [Ev adları alfanümerik olmalıdır (A-Z, 0-9, -_)](#ff7e5e)' +error_warp_name_taken: '[Hata:](#ff3300) [Bu ada sahip bir warp zaten var.](#ff7e5e)' +error_warp_name_length: '[Hata:](#ff3300) [Warp adları yalnızca en fazla 16 karakter içerebilir!](#ff7e5e)' +error_warp_name_characters: '[Hata:](#ff3300) [Warp adları alfanümerik olmalıdır (A-Z,0-9, -_)](#ff7e5e)' +error_home_description_length: '[Hata:](#ff3300) [Ev açıklamaları 255 karakterden kısa olmalıdır.](#ff7e5e)' +error_home_description_characters: '[Hata:](#ff3300) [Ev açıklamaları yalnızca alfanümerik (A-Z, 0-9) karakterler, boşluklar, kısa çizgiler (-) ve alt çizgiler (_) içerebilir](#ff7e5e)' +error_warp_description_length: '[Hata:](#ff3300) [Warp açıklamalarının uzunluğu 255 karakterden az olmalıdır.](#ff7e5e)' +error_warp_description_characters: '[Hata:](#ff3300) [Warp açıklamaları yalnızca alfanümerik (A-Z, 0-9) karakterler, boşluklar, kısa çizgiler (-) ve alt çizgiler (_) içerebilir.](#ff7e5e)' +error_no_permission: '[Hata:](#ff3300) [Bu komutu yürütme izniniz yok.](#ff7e5e)' +error_invalid_syntax: '[Hata:](#ff3300) [Yanlış sözdizimi. Kullanım: %1%](#ff7e5e)' +error_already_teleporting: '[Hata:](#ff3300) [Lütfen mevcut ışınlanmanın bitmesini bekleyin!](#ff7e5e)' +error_no_last_position: '[Hata:](#ff3300) [Dönmek için son bir konumunuz yok!](#ff7e5e)' +error_in_game_only: 'Hata: Bu komut sadece oyun içinde çalıştırılabilir..' +error_invalid_server: '[Hata:](#ff3300) [Hedef sunucu bulunamadığından veya çevrimdışı olduğundan ışınlanma tamamlanamadı.](#ff7e5e)' +error_home_invalid: '[Hata:](#ff3300) ["%1%" adında bir eviniz yok](#ff7e5e)' +error_warp_invalid: '[Hata:](#ff3300) ["%1%" adında bir warp ayarlanmamış](#ff7e5e)' +error_insufficient_funds: '[Hata:](#ff3300) [Yeterli paran yok. (Fiyat: %1%)](#ff7e5e)' +error_edit_home_privacy_already_public: '[Hata:](#ff3300) [Bu ev zaten herkese açık olarak ayarlanmış.](#ff7e5e)' +error_edit_home_privacy_already_private: '[Hata:](#ff3300) [Bu ev zaten özel olarak ayarlanmış.](#ff7e5e)' +error_no_homes_set: '[Hata:](#ff3300) [Herhangi bir ev belirlemediniz!](#ff7e5e)' +error_no_public_homes_set: '[Hata:](#ff3300) [Halka açık ayarlanan ev yok!](#ff7e5e)' +error_no_warps_set: '[Hata:](#ff3300) [Ayarlanan warp yok!](#ff7e5e)' +error_public_home_invalid: '[Hata:](#ff3300) [%1% tarafından sahip olunan, %2% adında bir herkese açık ev bulunamadı.](#ff7e5e)' +error_set_home_maximum_homes: '[Hata:](#ff3300) [En fazla %1% ev ayarlayabilirsiniz!](#ff7e5e)' +error_spawn_not_set: '[Hata:](#ff3300) [Spawn konumu ayarlanmadı.](#ff7e5e)' +error_no_teleport_requests: '[Hata:](#ff3300) [Bekleyen bir ışınlanma isteğiniz yok.](#ff7e5e)' +error_teleport_warmup_stand_still: '[Hata:](#ff3300) [Işınlanmaya başlamadan önce hareketsiz duruyor olmalısınız!](#ff7e5e)' +error_teleport_request_expired: '[Hata:](#ff3300) [Bekleyen ışınlanma isteğinizin süresi doldu.](#ff7e5e)' +error_teleport_request_sender_not_online: '[Hata:](#ff3300) [Bekleyen ışınlanma isteğinizi gönderen kişi artık çevrimiçi değil.](#ff7e5e)' +error_ignoring_teleport_requests: '[Hata:](#ff3300) [Şu anda ışınlanma isteklerini yok sayıyorsunuz.](#ff7e5e) [[Görmezden Gelmeyi Durdur…]](#ff7e5e show_text=&#ff7e5e&Gelen ışınlanma isteklerini dinlemek için tıklayın run_command=/huskhomes:tpignore)' +error_invalid_teleport_request: '[Hata:](#ff3300) [%1% tarafından bekleyen bir ışınlanma isteğiniz yok.](#ff7e5e)' +error_teleport_request_self: '[Hata:](#ff3300) [Kendinize ışınlanma isteği gönderemezsiniz.](#ff7e5e)' +error_player_not_found: '[Hata:](#ff3300) [%1% adlı oyuncu bulunamadı.](#ff7e5e)' +error_rtp_restricted_world: '[Hata:](#ff3300) [Bu dünyada rastgele ışınlanamazsınız.](#ff7e5e)' +error_rtp_cooldown: '[Hata:](#ff3300) [Yeniden rastgele ışınlanmadan önce %1% dakika beklemelisiniz.](#ff7e5e)' +error_command_disabled: '[Hata:](#ff3300) [Bu komut devre dışı!](#ff7e5e)' +error_console_command_only: '[Hata:](#ff3300) [Bu komut yalnızca sunucu konsolundan çalıştırılabilir.](#ff7e5e)' +error_rtp_randomization_timeout: '[Hata:](#ff3300) [Sizi ışınlamak için güvenli bir rasgele konum bulunamadı.](#ff7e5e)' +error_permission_restricted_warp: '[Hata:](#ff3300) [%1% warpına gitme izniniz yok!](#ff7e5e)' +error_invalid_world: '[Hata:](#ff3300) [Hedef dünya bulunamadığından ışınlanma tamamlanamadı.](#ff7e5e)' +error_no_offline_position: '[Hata:](#ff3300) [%1% adlı oyuncunun en son nerede çıkış yaptığı bulunamadı.](#ff7e5e)' +error_no_homes_set_other: '[Hata:](#ff3300) [%1% herhangi bir ev ayarlamadı!](#ff7e5e)' +error_home_invalid_other: '[Hata:](#ff3300) [%1%, "%2%" adında bir ev grubuna sahip değil](#ff7e5e)' +error_edit_home_maximum_public_homes: '[Hata:](#ff3300) [En fazla %1% evi herkese açık hale getirebilirsiniz.](#ff7e5e)' +error_illegal_target_coordinates: '[Hata:](#ff3300) [Olası oyun dünyası sınırlarını aştığı için ışınlanma iptal edildi.](#ff7e5e)' +error_no_players_online: '[Hata:](#ff3300) [Size ışınlanabilecek çevrimiçi oyuncu yok.](#ff7e5e)' +error_teleport_target_not_resolved: '[Hata:](#ff3300) [Hedef konum bulunamadığından ışınlanma iptal edildi.](#ff7e5e)' +error_teleport_teleporter_not_resolved: '[Hata:](#ff3300) [Işınlanacak kullanıcı bulunamadığından ışınlanma iptal edildi](#ff7e5e)' +home_command_description: 'Evlerinizden birine ışınlar' +sethome_command_description: 'Verilen adla yeni bir ev ayarlar' +delhome_command_description: 'Önceden ayarladığınız bir evi siler' +edithome_command_description: 'Evlerinizden birini düzenler' +warp_command_description: 'Bir warpa ışınlar' +setwarp_command_description: 'Verilen ad ile yeni bir warp ayarlar' +delwarp_command_description: 'Warpları siler' +editwarp_command_description: 'Warpları düzenler' +back_command_description: 'Önceki konumunuza veya öldüğünüz yere dönüdürür' +homelist_command_description: 'Evlerinizin bir listesini alır' +warplist_command_description: 'Warp listesini görünütler' +publichomelist_command_description: 'Herkese açık evlerin listesini görüntüler' +publichome_command_description: 'Herkese açık bir eve ışınlar' +tp_command_description: 'Başka bir oyuncuya veya konuma ışınlar' +tphere_command_description: 'Başka bir oyuncuyu sana ışınlar' +tpa_command_description: 'Başka bir oyuncuya ışınlanma isteği atar' +tpahere_command_description: 'Başka bir oyuncunun size ışınlanmasını ister' +tpaccept_command_description: 'Bir ışınlanma isteğini kabul eder' +tpdecline_command_description: 'Bir ışınlanma isteğini reddeder' +tpignore_command_description: 'Gelen ışınlanma isteklerini yoksayar' +tpoffline_command_description: 'Bir oyuncunun en son çevrimiçi olduğu yere ışınlar' +rtp_command_description: 'Vahşi doğaya rastgele ışınlar' +spawn_command_description: 'Spawna ışınlar' +setspawn_command_description: 'Işınlanma komudunu ayarlar' +tpaall_command_description: 'Herkesin size ışınlanmasını ister' +tpall_command_description: 'Herkesi konumunuza ışınlar' +huskhomes_command_description: 'Eklenti bilgilerini görüntüleyin ve yapılandırmaları yeniden yükler' diff --git a/images/banner-graphic.png b/images/banner-graphic.png deleted file mode 100644 index e2856f27..00000000 Binary files a/images/banner-graphic.png and /dev/null differ diff --git a/images/banner.png b/images/banner.png new file mode 100644 index 00000000..194f719c Binary files /dev/null and b/images/banner.png differ