mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Add /rtp with normal distribution, economy hook, home limits, new tests, locales
This commit is contained in:
1 parent
0bb33c6f1e
commit
08e6569027
39 files changed
+1128
-188
No files matched your search
@@ -83,7 +83,7 @@ public class TeleportManager {
|
||||
*/
|
||||
public void teleportToWarpByName(@NotNull OnlineUser onlineUser, @NotNull String warpName) {
|
||||
plugin.getDatabase().getWarp(warpName).thenAccept(optionalWarp ->
|
||||
optionalWarp.ifPresentOrElse(warp -> //todo permission restricted warps
|
||||
optionalWarp.ifPresentOrElse(warp ->
|
||||
teleportToWarp(onlineUser, warp), () ->
|
||||
plugin.getLocales().getLocale("error_warp_invalid", warpName)
|
||||
.ifPresent(onlineUser::sendMessage)));
|
||||
@@ -96,6 +96,7 @@ public class TeleportManager {
|
||||
* @param warp the {@link Warp} to teleport to
|
||||
*/
|
||||
public void teleportToWarp(@NotNull OnlineUser onlineUser, @NotNull Warp warp) {
|
||||
//todo permission restricted warps
|
||||
timedTeleport(onlineUser, warp).thenAccept(result -> finishTeleport(onlineUser, result));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user