mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
TeleportResult refactor, use record and bundle resolved information, separate TeleportState enum, deprecate relevant API
This commit is contained in:
1 parent
82d47f0878
commit
4164f07841
12 files changed
+285
-151
No files matched your search
@@ -43,7 +43,7 @@ public class TpOfflineCommand extends CommandBase implements TabCompletable {
|
||||
.setTarget(offlinePosition.get())
|
||||
.toTeleport()
|
||||
.thenAccept(teleport -> teleport.execute().thenAccept(result -> {
|
||||
if (result.successful) {
|
||||
if (result.successful()) {
|
||||
plugin.getLocales().getLocale("teleporting_offline_complete", targetUser)
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user