PaperMC/Spigot-API-Patches/Add-PlayerInitialSpawnEvent.patch

30 lines
1.1 KiB
Diff
Raw Normal View History

2015-12-23 05:06:19 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Steve Anton <anxuiz.nx@gmail.com>
2016-03-01 00:09:49 +01:00
Date: Mon, 29 Feb 2016 18:13:58 -0600
2015-12-23 05:06:19 +01:00
Subject: [PATCH] Add PlayerInitialSpawnEvent
For modifying a player's initial spawn location as they join the server
2016-03-01 00:09:49 +01:00
diff --git a/src/main/java/com/destroystokyo/paper/event/player/PlayerInitialSpawnEvent.java b/src/main/java/com/destroystokyo/paper/event/player/PlayerInitialSpawnEvent.java
2015-12-23 05:06:19 +01:00
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
2015-12-23 05:06:19 +01:00
--- /dev/null
2016-03-01 00:09:49 +01:00
+++ b/src/main/java/com/destroystokyo/paper/event/player/PlayerInitialSpawnEvent.java
2015-12-23 05:06:19 +01:00
@@ -0,0 +0,0 @@
2016-03-01 00:09:49 +01:00
+package com.destroystokyo.paper.event.player;
2015-12-23 05:06:19 +01:00
+
+import org.bukkit.Location;
+import org.bukkit.entity.Player;
+import org.jetbrains.annotations.NotNull;
+import org.spigotmc.event.player.PlayerSpawnLocationEvent;
2015-12-23 05:06:19 +01:00
+
+/**
+ * @deprecated Use {@link PlayerSpawnLocationEvent}, Duplicate API
+ */
+public class PlayerInitialSpawnEvent extends PlayerSpawnLocationEvent {
2015-12-23 05:06:19 +01:00
+
+ public PlayerInitialSpawnEvent(@NotNull Player who, @NotNull Location spawnLocation) {
+ super(who, spawnLocation);
2015-12-23 05:06:19 +01:00
+ }
+}