-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b3bf31
commit 23a4402
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: LemonCaramel <admin@caramel.moe> | ||
Date: Sun, 11 Aug 2024 23:26:55 +0900 | ||
Subject: [PATCH] Backport transfer packet | ||
|
||
|
||
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java | ||
index 04191a8cf999b49c811ae4ba4e07a52faa7fd1ea..863767f05f359f7bee1cd893b858a6975d8188ad 100644 | ||
--- a/src/main/java/org/bukkit/entity/Player.java | ||
+++ b/src/main/java/org/bukkit/entity/Player.java | ||
@@ -258,6 +258,19 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM | ||
@Nullable | ||
public InetSocketAddress getAddress(); | ||
|
||
+ // Daydream start - Backport transfer packet | ||
+ /** | ||
+ * Requests this player to connect to a different server specified by host | ||
+ * and port. | ||
+ * | ||
+ * @param host the host of the server to transfer to | ||
+ * @param port the port of the server to transfer to | ||
+ * @throws IllegalStateException if a transfer cannot take place at this | ||
+ * time | ||
+ */ | ||
+ void transfer(@NotNull String host, int port); | ||
+ // Daydream end - Backport transfer packet | ||
+ | ||
/** | ||
* Sends this sender a message raw | ||
* |