mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
SPIGOT-5930: Add PlayerRespawnEvent#isAnchorSpawn
By: md_5 <git@md-5.net>
This commit is contained in:
parent
7d66dc54c4
commit
bd9f850346
@ -475,7 +475,7 @@
|
|||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ Player respawnPlayer = cserver.getPlayer(entityplayer1);
|
+ Player respawnPlayer = cserver.getPlayer(entityplayer1);
|
||||||
+ PlayerRespawnEvent respawnEvent = new PlayerRespawnEvent(respawnPlayer, location, isBedSpawn);
|
+ PlayerRespawnEvent respawnEvent = new PlayerRespawnEvent(respawnPlayer, location, isBedSpawn && !flag2, flag2);
|
||||||
+ cserver.getPluginManager().callEvent(respawnEvent);
|
+ cserver.getPluginManager().callEvent(respawnEvent);
|
||||||
+
|
+
|
||||||
+ location = respawnEvent.getRespawnLocation();
|
+ location = respawnEvent.getRespawnLocation();
|
||||||
|
Loading…
Reference in New Issue
Block a user