Skip to content

Commit

Permalink
#20240811.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonCaramel committed Aug 11, 2024
1 parent 1b3bf31 commit 23a4402
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions patches/0034-Backport-transfer-packet.patch
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
*

0 comments on commit 23a4402

Please sign in to comment.