@@ -298,7 +298,7 @@ private void cleanUpUser(Location loc) {
298298 // Set protection range based on user's permission, if different from default
299299 island .setProtectionRange (user .getPermissionValue (
300300 plugin .getIWM ().getAddon (island .getWorld ()).map (GameModeAddon ::getPermissionPrefix ).orElse ("" )
301- + "island.range" ,
301+ + "island.range" ,
302302 island .getProtectionRange ()));
303303 }
304304
@@ -312,14 +312,18 @@ private Location makeNextIsland() throws IOException {
312312 // Use location strategy to find next available spot
313313 Location next = this .locationStrategy .getNextLocation (world , user );
314314 if (next == null ) {
315- plugin .logError ("Failed to make island - no unoccupied spot found." );
316- plugin .logError ("If the world was imported, try multiple times until all unowned islands are known." );
315+ if (plugin .getIWM ().getAddon (world ).map (GameModeAddon ::isEnforceEqualRanges ).orElse (true )) {
316+ plugin .logError ("Failed to make island - no unoccupied spot found." );
317+ plugin .logError ("If the world was imported, try multiple times until all unowned islands are known." );
318+ }
317319 throw new IOException ("commands.island.create.cannot-create-island" );
318320 }
319321 // Add island to grid
320322 island = plugin .getIslands ().createIsland (next , user .getUniqueId ());
321323 if (island == null ) {
322- plugin .logError ("Failed to make island! Island could not be added to the grid." );
324+ if (plugin .getIWM ().getAddon (world ).map (GameModeAddon ::isEnforceEqualRanges ).orElse (true )) {
325+ plugin .logError ("Failed to make island! Island could not be added to the grid." );
326+ }
323327 throw new IOException ("commands.island.create.unable-create-island" );
324328 }
325329 return next ;
@@ -359,8 +363,8 @@ private void tidyUp(Island oldIsland) {
359363
360364 // Fire exit event for plugins/addons
361365 IslandEvent .builder ().involvedPlayer (user .getUniqueId ())
362- .reason (reason == Reason .RESET ? Reason .RESETTED : Reason .CREATED ).island (island )
363- .location (island .getCenter ()).oldIsland (oldIsland ).build ();
366+ .reason (reason == Reason .RESET ? Reason .RESETTED : Reason .CREATED ).island (island )
367+ .location (island .getCenter ()).oldIsland (oldIsland ).build ();
364368
365369 }
366370}
0 commit comments