From 40ecbc8ec699a2f929473b07ba8751f1a8f5face Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 12 Sep 2020 15:53:52 -0700 Subject: [PATCH] Update API for event constructor - anchor spawn --- .../flags/worldsettings/IslandRespawnListenerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/world/bentobox/bentobox/listeners/flags/worldsettings/IslandRespawnListenerTest.java b/src/test/java/world/bentobox/bentobox/listeners/flags/worldsettings/IslandRespawnListenerTest.java index baced21b9..ce30e3409 100644 --- a/src/test/java/world/bentobox/bentobox/listeners/flags/worldsettings/IslandRespawnListenerTest.java +++ b/src/test/java/world/bentobox/bentobox/listeners/flags/worldsettings/IslandRespawnListenerTest.java @@ -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()); }