mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Merge branch 'master' into ApliNi_master
This commit is contained in:
commit
a0a5eb9d32
3 files changed
+4
-4
No files matched your search
@@ -421,7 +421,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find a safe position and return
|
// Find a safe position and return
|
||||||
PaperLib.getChunkAtAsync(bukkitLocation).thenAccept(chunk ->
|
PaperLib.getChunkAtAsync(bukkitLocation).thenAcceptAsync(chunk ->
|
||||||
future.complete(BukkitSafetyUtil.findSafeLocation(location.world, bukkitLocation,
|
future.complete(BukkitSafetyUtil.findSafeLocation(location.world, bukkitLocation,
|
||||||
chunk.getChunkSnapshot()))).exceptionally(throwable -> {
|
chunk.getChunkSnapshot()))).exceptionally(throwable -> {
|
||||||
throwable.printStackTrace();
|
throwable.printStackTrace();
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ public class BackCommand extends CommandBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Teleport the player
|
// Teleport the player
|
||||||
plugin.getTeleportManager().timedTeleport(onlineUser, position, Settings.EconomyAction.RANDOM_TELEPORT)
|
plugin.getTeleportManager().timedTeleport(onlineUser, position, Settings.EconomyAction.BACK_COMMAND)
|
||||||
.thenAccept(result -> plugin.getTeleportManager()
|
.thenAccept(result -> plugin.getTeleportManager()
|
||||||
.finishTeleport(onlineUser, result, Settings.EconomyAction.RANDOM_TELEPORT));
|
.finishTeleport(onlineUser, result, Settings.EconomyAction.BACK_COMMAND));
|
||||||
},
|
},
|
||||||
() -> plugin.getLocales().getLocale("error_no_last_position").ifPresent(onlineUser::sendMessage)));
|
() -> plugin.getLocales().getLocale("error_no_last_position").ifPresent(onlineUser::sendMessage)));
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
javaVersion=16
|
javaVersion=16
|
||||||
|
|
||||||
plugin_version=3.0.1
|
plugin_version=3.0.2
|
||||||
plugin_archive=huskhomes
|
plugin_archive=huskhomes
|
||||||
|
|
||||||
jedis_version=4.2.3
|
jedis_version=4.2.3
|
||||||
|
|||||||
Reference in new issue
Block a user