diff --git a/Spigot-Server-Patches/add-RespawnFlags-to-PlayerRespawnEvent.patch b/Spigot-Server-Patches/add-RespawnFlags-to-PlayerRespawnEvent.patch index 8ded1edfe4..b458277981 100644 --- a/Spigot-Server-Patches/add-RespawnFlags-to-PlayerRespawnEvent.patch +++ b/Spigot-Server-Patches/add-RespawnFlags-to-PlayerRespawnEvent.patch @@ -25,8 +25,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 return this.moveToWorld(entityplayer, this.server.getWorldServer(entityplayer.getSpawnDimension()), flag, null, true); } -- public EntityPlayer moveToWorld(EntityPlayer entityplayer, WorldServer worldserver, boolean flag, Location location, boolean avoidSuffocation) { -+ public EntityPlayer moveToWorld(EntityPlayer entityplayer, WorldServer worldserver, boolean flag, Location location, boolean avoidSuffocation, org.bukkit.event.player.PlayerRespawnEvent.RespawnFlag...respawnFlags) { // Paper ++ // Paper start + public EntityPlayer moveToWorld(EntityPlayer entityplayer, WorldServer worldserver, boolean flag, Location location, boolean avoidSuffocation) { ++ return moveToWorld(entityplayer, worldserver, flag, location, avoidSuffocation, new org.bukkit.event.player.PlayerRespawnEvent.RespawnFlag[0]); ++ } ++ ++ public EntityPlayer moveToWorld(EntityPlayer entityplayer, WorldServer worldserver, boolean flag, Location location, boolean avoidSuffocation, org.bukkit.event.player.PlayerRespawnEvent.RespawnFlag...respawnFlags) { ++ // Paper end entityplayer.stopRiding(); // CraftBukkit this.players.remove(entityplayer); this.playersByName.remove(entityplayer.getName().toLowerCase(java.util.Locale.ROOT)); // Spigot