fix: dismount before changing servers, close #555

This commit is contained in:
William committed 2024-03-31 19:33:53 +01:00
1 parent 9d2a73fd2c
commit f4437806b6
5 files changed
+61 -5

No files matched your search

@@ -37,6 +37,7 @@ import org.intellij.lang.annotations.Subst;
import org.jetbrains.annotations.NotNull;
import java.util.*;
import java.util.concurrent.CompletableFuture;
/**
* A cross-platform representation of a logged-in {@link User}.
@@ -180,6 +181,13 @@ public abstract class OnlineUser extends User implements Teleportable, CommandUs
return plugin.getAudience(getUuid());
}
/**
* Dismount the player, readying them for teleportation.
*
* @return a {@link CompletableFuture} that completes when the player has dismounted
*/
public abstract CompletableFuture<Void> dismount();
/**
* Teleport a player to the specified local {@link Location}.
*