mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-06-24 13:54:51 +02:00
Update API for event constructor - anchor spawn
This commit is contained in:
parent
b6c30fc466
commit
40ecbc8ec6
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user