2020-05-01 22:03:47 +00:00
|
|
|
From 19fc087b4ae7ad9562925fba66a2b5888a8be51e Mon Sep 17 00:00:00 2001
|
2015-12-23 04:06:19 +00:00
|
|
|
From: Steve Anton <anxuiz.nx@gmail.com>
|
2016-02-29 23:09:49 +00:00
|
|
|
Date: Mon, 29 Feb 2016 18:13:58 -0600
|
2015-12-23 04:06:19 +00:00
|
|
|
Subject: [PATCH] Add PlayerInitialSpawnEvent
|
|
|
|
|
|
|
|
For modifying a player's initial spawn location as they join the server
|
|
|
|
|
2016-02-29 23:09:49 +00: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 04:06:19 +00:00
|
|
|
new file mode 100644
|
2020-05-01 22:03:47 +00:00
|
|
|
index 000000000..8b1fdb9d2
|
2015-12-23 04:06:19 +00:00
|
|
|
--- /dev/null
|
2016-02-29 23:09:49 +00:00
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/event/player/PlayerInitialSpawnEvent.java
|
2020-04-19 07:11:02 +00:00
|
|
|
@@ -0,0 +1,16 @@
|
2016-02-29 23:09:49 +00:00
|
|
|
+package com.destroystokyo.paper.event.player;
|
2015-12-23 04:06:19 +00:00
|
|
|
+
|
|
|
|
+import org.bukkit.Location;
|
|
|
|
+import org.bukkit.entity.Player;
|
2019-03-20 00:28:15 +00:00
|
|
|
+import org.jetbrains.annotations.NotNull;
|
2020-04-19 07:11:02 +00:00
|
|
|
+import org.spigotmc.event.player.PlayerSpawnLocationEvent;
|
2015-12-23 04:06:19 +00:00
|
|
|
+
|
2020-04-19 07:11:02 +00:00
|
|
|
+/**
|
|
|
|
+ * @deprecated Use {@link PlayerSpawnLocationEvent}, Duplicate API
|
|
|
|
+ */
|
|
|
|
+public class PlayerInitialSpawnEvent extends PlayerSpawnLocationEvent {
|
2015-12-23 04:06:19 +00:00
|
|
|
+
|
2020-04-19 07:11:02 +00:00
|
|
|
+ public PlayerInitialSpawnEvent(@NotNull Player who, @NotNull Location spawnLocation) {
|
|
|
|
+ super(who, spawnLocation);
|
2015-12-23 04:06:19 +00:00
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
--
|
2020-05-01 22:03:47 +00:00
|
|
|
2.26.2
|
2015-12-23 04:06:19 +00:00
|
|
|
|