SPIGOT-5930: Add PlayerRespawnEvent#isAnchorSpawn

This commit is contained in:
md_5 2020-07-03 09:54:05 +10:00
parent 94eff632f1
commit 7f6b4f587c
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
1 changed files with 1 additions and 1 deletions

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();