MasterCake %!s(int64=3) %!d(string=hai) anos
pai
achega
df136246e6
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/main/java/xyz/spaceio/hooks/HookSuperiorSkyblock.java

+ 7 - 1
src/main/java/xyz/spaceio/hooks/HookSuperiorSkyblock.java

@@ -1,9 +1,11 @@
 package xyz.spaceio.hooks;
 
+import java.util.List;
 import java.util.Optional;
 import java.util.UUID;
 
 import org.bukkit.Location;
+import org.bukkit.World;
 import org.bukkit.block.Block;
 
 import com.bgsoftware.superiorskyblock.api.SuperiorSkyblockAPI;
@@ -36,7 +38,11 @@ public class HookSuperiorSkyblock implements SkyblockAPIHook {
 
 	@Override
 	public String[] getSkyBlockWorldNames() {
-		return SuperiorSkyblockAPI.getGrid().getRegisteredWorlds().stream().map(w -> w.getName()).toArray(String[]::new);
+		
+		List<World> worlds = SuperiorSkyblockAPI.getGrid().getRegisteredWorlds();
+		worlds.add(SuperiorSkyblockAPI.getSpawnIsland().getVisitorsLocation().getWorld());
+		
+		return worlds.stream().map(w -> w.getName()).toArray(String[]::new);
 	}
 	
 	@Override