aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0020-Add-PlayerInitialSpawnEvent.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2023-12-05 18:33:18 +0100
committerNassim Jahnke <[email protected]>2023-12-05 18:33:18 +0100
commit8e8d6aeeb0381b0c648605238f5445a4b7b041f3 (patch)
treee686fa54547d5cc1e2e9c5494f02b83832371c12 /patches/api/0020-Add-PlayerInitialSpawnEvent.patch
parent2a1ace0cf289870e82d23cf6cbcd87493f26a188 (diff)
downloadPaper-8e8d6aeeb0381b0c648605238f5445a4b7b041f3.tar.gz
Paper-8e8d6aeeb0381b0c648605238f5445a4b7b041f3.zip
Finish API
Diffstat (limited to 'patches/api/0020-Add-PlayerInitialSpawnEvent.patch')
-rw-r--r--patches/api/0020-Add-PlayerInitialSpawnEvent.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/api/0020-Add-PlayerInitialSpawnEvent.patch b/patches/api/0020-Add-PlayerInitialSpawnEvent.patch
new file mode 100644
index 0000000000..122054772a
--- /dev/null
+++ b/patches/api/0020-Add-PlayerInitialSpawnEvent.patch
@@ -0,0 +1,31 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Steve Anton <[email protected]>
+Date: Mon, 29 Feb 2016 18:13:58 -0600
+Subject: [PATCH] Add PlayerInitialSpawnEvent
+
+For modifying a player's initial spawn location as they join the server
+
+diff --git a/src/main/java/com/destroystokyo/paper/event/player/PlayerInitialSpawnEvent.java b/src/main/java/com/destroystokyo/paper/event/player/PlayerInitialSpawnEvent.java
+new file mode 100644
+index 0000000000000000000000000000000000000000..febd384b43560d7d55c96bda5b0701a27fc9e18e
+--- /dev/null
++++ b/src/main/java/com/destroystokyo/paper/event/player/PlayerInitialSpawnEvent.java
+@@ -0,0 +1,18 @@
++package com.destroystokyo.paper.event.player;
++
++import org.bukkit.Location;
++import org.bukkit.entity.Player;
++import org.jetbrains.annotations.ApiStatus;
++import org.jetbrains.annotations.NotNull;
++import org.spigotmc.event.player.PlayerSpawnLocationEvent;
++
++/**
++ * @deprecated Use {@link PlayerSpawnLocationEvent}, Duplicate API
++ */
++@Deprecated(forRemoval = true) @ApiStatus.ScheduledForRemoval(inVersion = "1.21")
++public class PlayerInitialSpawnEvent extends PlayerSpawnLocationEvent {
++
++ public PlayerInitialSpawnEvent(@NotNull Player who, @NotNull Location spawnLocation) {
++ super(who, spawnLocation);
++ }
++}