getWorld
Gets a world by name.
Return
The world or null.
Parameters
name
The world name
Gets a world by server-specific instance.
The instance parameter represents the server-specific server instance:
For Bukkit
org.bukkit.WorldFor modded servers (Fabric/Forge)
net.minecraft.server.level.ServerLevel
Return
The world.
Parameters
instance
The server-specific world instance.