Update API for event constructor - anchor spawn

This commit is contained in:
tastybento 2020-09-12 15:53:52 -07:00
parent b6c30fc466
commit 40ecbc8ec6

View File

@ -212,7 +212,7 @@ public class IslandRespawnListenerTest {
// Has island
when(im.hasIsland(any(), any(UUID.class))).thenReturn(true);
// Respawn
PlayerRespawnEvent ev = new PlayerRespawnEvent(player, location, false);
PlayerRespawnEvent ev = new PlayerRespawnEvent(player, location, false, false);
l.onPlayerRespawn(ev);
assertEquals(safeLocation, ev.getRespawnLocation());
// Verify commands
@ -231,7 +231,7 @@ public class IslandRespawnListenerTest {
// Has island
when(im.hasIsland(any(), any(UUID.class))).thenReturn(true);
// Respawn
PlayerRespawnEvent ev = new PlayerRespawnEvent(player, location, false);
PlayerRespawnEvent ev = new PlayerRespawnEvent(player, location, false, false);
l.onPlayerRespawn(ev);
assertEquals(location, ev.getRespawnLocation());
}
@ -254,7 +254,7 @@ public class IslandRespawnListenerTest {
// Has island
when(im.hasIsland(any(), any(UUID.class))).thenReturn(true);
// Respawn
PlayerRespawnEvent ev = new PlayerRespawnEvent(player, location, false);
PlayerRespawnEvent ev = new PlayerRespawnEvent(player, location, false, false);
l.onPlayerRespawn(ev);
assertEquals(location, ev.getRespawnLocation());
}
@ -275,7 +275,7 @@ public class IslandRespawnListenerTest {
// Has island
when(im.hasIsland(any(), any(UUID.class))).thenReturn(true);
// Respawn
PlayerRespawnEvent ev = new PlayerRespawnEvent(player, location, false);
PlayerRespawnEvent ev = new PlayerRespawnEvent(player, location, false, false);
l.onPlayerRespawn(ev);
assertEquals(location, ev.getRespawnLocation());
}