SPIGOT-5930: Add PlayerRespawnEvent#isAnchorSpawn

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2020-07-03 09:54:05 +10:00
parent 7d66dc54c4
commit bd9f850346

View File

@ -475,7 +475,7 @@
+ }
+
+ 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);
+
+ location = respawnEvent.getRespawnLocation();