Almost all commands operate on the world the player executing the command is currently on. To operate on another world, stick the world name to change at the very end of the command.
If an argument, such as a world name, has spaces in it, surround the argument with quotations. For example: /world load "my big world with spaces" All commands below that use /world have aliases /myworlds and /mw, in case another plugin is conflicting, use those.
Many commands are a simple yes/no. Other words such as 'enabled/disabled' and 'true/false' work as well.
An overview of all permissions can be found in plugins/My_Worlds/PermissionDefaults.yml
/world create [worldname]:[generator]:[arguments] [seed]
/world create [worldname] [seed]
/world create [worldname]/[environment] [seed]
/world create world1:BananaSpace:12,grass,wood,dirt -1856378464
/world create world2 -527332672
/world create world2_nether
/world create mynether/nether
/world create itssobig/largebiomes
/world create world3_skylands
/world create skylandsworld
Creating new worlds can be done simply by specifying the world name, followed by the environment of the world if relevant. The postfix of the world changes what environment is created.
worldname: Normal overworld
worldname_nether: Nether world
worldname_the_end: End world
worldname_flat: Flat world. Change layer settings in server.properties (generator-settings)
worldname_largebiomes: Large biomes world.
Postfix without the name
worldname/nether: Nether world, but named 'worldname'
worldname/largebiomes: Large biomes environment
A nether link is automatically created between worldname and worldname_nether, where worldname can be any world name. An end-portal gateway link is automatically created between worldname and worldname_the_end.
It is also possible to specify a plugin name that provides the chunk generator to use for the world, followed by the configuration for this chunk generator plugin to use. In the example below, BananaSpace is used:
/world create world1:BananaSpace:12,grass,wood,dirt -1856378464
Use the following command to list plugins on the server that offer a world generator:
Flat World Options
In Vanilla Minecraft, the layers of flat worlds can be configured through the options String. This can also be specified, by using the following syntax:
/world create the_world_name/flat::[options]
/world create the_world_name/flat::3;1*minecraft:bedrock,7*minecraft:dirt,1*minecraft:stone,1*minecraft:sandstone;2;village
Here is a helpful website for generating this options String (not sponsored, there's others out there)
My Worlds adds an extra option: nostructures and structures, to override whether to generate structures such as villages, mineshafts, etc. If omitted it defaults to what is set in the server.properties.
/world create my_void_world/flat::minecraft:air;minecraft:the_void;nostructures
/world list Show what worlds are loaded on the server, and which worlds sit in the server directory that can be loaded. When importing a world from elsewhere, you can use /world list to check it is there, then proceed with loading the world.
World loading and unloading
/world load [worldname] /world unload [worldname] /world load [worldname]:[generator]:[arguments]
Load or unload a world. After loading a world, this same world will be loaded when the server (re)starts the next time. When unloading a world, the same world will no longer load on startup.
To load in a world that uses a specific chunk generator, use the third command example above, specifying the plugin name and argument similar to the create command.
- myworlds.world.loadspecial (for specifying custom generator)
World copying, repair and deletion
/world copy [worldname] [newworldname]
/world repair [worldname] [seed]
/world delete [worldname]
Permanently delete an unloaded world or copy an existing world to a new name. With repair, the level.dat of a world can be regenerated to make the world loadable again, and corrupted chunks are cleaned up. Note that these commands are not allowed in-game by default (not even ops), you have to give players the permission node for that to be possible.
/world info [worldname] /world info /world info world1 Shows information of a world, such as the seed, time, weather and other set properties.
World autosave and saving
/world autosave [enabled/disabled]
Turn automatic world saving on or off for a world, or save a world to disk manually. Worlds with autosave disabled do not unload the chunks, which may hurt performance. This makes this only suitable for small worlds with a well-defined border.
To save all worlds on the server, use /world save *.
Permissions: myworlds.world.setsaving (autosave) myworlds.world.save
Keep world spawn area loaded
/world keepspawnloaded [yes/no]
Toggles whether the area around the world spawn is kept loaded. Keeping it loaded may help with server lag as new players join. However, it causes extra memory usage / cpu usage because of mobs that spawn here.
Set spawn point
/world setspawn [worldname]
Sets the spawn point of a world to your position. It is possible to set the (re)spawn point of one world to another world. The player rotation is used as well, so it is possible to make players spawn facing into a certain direction.
/world portals [worldname]
Lists all portals (of a world), and formats them in a colour-rich message to the sender. You can see the distance of the portal in the coloured output.
Set default nether portal or end portal behavior
/world endportal [property] [value]
/world netherportal [property] [value]
/world netherportal destination [world name/portal name]
/world netherportal autodetect
/world netherportal info
Configures the behavior of (player-created) nether portals and naturally spawned end gateways. With autodetect, vanilla behavior can be detected for a world. This way the nether teleports to the overworld and back. With the info command, the currently set properties can be listed.
All possible combinations of properties are possible. You can create a nether portal in the end, upon entering an end gateway, for example.
- destination: World name or portal name players are teleported to upon entering the portal
- mode: Portal behavior mode for world destinations. This can be one of the following values:
- default: Players are teleported to the world spawn, or the exact portal coordinates
- respawn: Players respawn at their bed / world anchor, or world spawn
- rejoin: Players are teleported to the last position they had on another world
- nether_link: Players are teleported to the same coordinates (x8 nether) on the other world, where a portal frame is created
- end_platform: Players are teleported to the end platform coordinates (100/50/0), where an obsidian platform is created for them
- showcredits: Whether to show the game end credits upon entering the portal. This is what you see in the end, but you can turn that off there, or have it show these credits on other worlds.
- displayname: Sets the text displayed when players are teleported through the portal
- playeronly: Set whether only players (and not mobs/items) can teleport through the portal
- lastposition: Configures the portal to teleport the player to the last known position of the player on the destination world
- nonplayerscreateportals: Whether non-player entities can create portals upon going through nether portals (nether_link mode). Can be turned off if players are causing lag, or if obsidian farming is unwanted.
Permission to use command: myworlds.world.setportal
Permission for creating portals on other worlds:
When players enter a (self-lit) portal on a world with default portal mode nether_link or end_platform, and a portal does not exist on the other end yet, one is created. Players need the following permission to do this, or they see an 'and you cannot create it' message. By default everyone has this permission.
Bed Respawn & Nether Anchor
/world bedrespawn [enabled/disabled]
Enables or disables bed and world anchor respawn functionality for a world. When disabled, players will not respawn at their bed when they die, instead respawning at the world respawn point.
Give a portal item
/world giveportal [end/nether]
Gives the player a special MyWorlds item which can be used to create nether portals or end gateway portals in the real world. The placed blocks do not cause physics, which allows any shape to be built.
Setting world operators
/world op [playername] [worldname]
/world deop [playername] [worldname]
/world op [playername]
/world deop [playername]
/world op * World1
/world op player1 *
/world deop * *
Sets world Operators for a world. Players listed for the world will receive OP permissions, those that don't lose them when entering the world. Using the '*'-keyword you can target all players or all worlds. Players only receive or lose OP permissions if this feature is enabled in the Configuration [TODO LINK].
/world evacuate [worldname] [message...]
/world evacuate [worldname]
/world evacuate World1 Your world has been closed!
Evacuates a world from it's players. If you want to unload a world, but it is full of players, you can use this to get rid of the players. Portals on the evacuated world are used to teleport players away. If players have world teleport and enter permissions, they are teleported to a random world. If all fails, the player is kicked with the reason message specified. Those that did not get kicked, also get to see the message.
Allow and deny mobs from spawning
/world allowspawn [mobname] [worldname]
/world allowspawn [mobname]
/world denyspawn [mobname] [worldname]
/world denyspawn [mobname]
/world denyspawn creeper
/world denyspawn animal world1
Allows and denies certain mobs from spawning on a world. Custom-spawned mobs (such as those spawned through commands) are ignored. You can use all mob types as mobname, but also ‘animal’, ‘monster’, ‘all‘ or ‘mob’ to collectively allow or deny mobs from spawning.
/world time [time] [worldname]
/world time [time]
/world time always 12:00
/world time day
/world time night world1
/world time 24:00 locked
Sets the time of a world. You can use keywords like ‘lock’, ‘always’ and ‘forever’ to indicate if the time should be locked. You can use keywords like ‘day’, ‘night’, ‘dawn’, ‘morning’ to indicate a certain time. You can also use the hours:minutes to set the time.
/world weather [weather] [worldname]
/world weather [weather]
/world weather always rain
/world weather rainy
/world weather endless storm
/world weather always sunny World1
Sets the weather state of a world. You can use keywords like ‘lock’, ‘always’, ‘endless’ and ‘forever’ to indicate if the weather state should be locked. You can use ‘sun’ to clear the weather, ‘rain’ for rain and ‘storm’ for rain with lightning.
/world gamemode [mode] [worldname]
/world gamemode [mode]
/world gamemode survival
/world gamemode creative world1
/world gamemode none
Sets the game mode for a specific world. All players in this world will automatically get this game mode when (re)joining the world. Valid game modes are 'survival' and 'creative'. If another name is used, it is cleared, and players remain the game mode they had previously.
Permissions: myworlds.world.gamemode myworlds.world.ignoregamemode (players with this permission as unaffected by world game modes)
/world difficulty [difficulty] [worldname]
/world difficulty [difficulty]
/world difficulty peaceful
Sets the difficulty of a world. The difficulty influences the damage done to players and if mobs spawn. Valid difficulties are 'easy', 'normal', 'hard' and 'peaceful'.
/world alias "The Nether"
Sets a world name alias to use with PlaceholderAPI
/world advancements [enabled/disabled/silent]
Sets whether players can gain advancements on the world. By disabling advancements on creative worlds, you can prevent players from cheating while playing on survival worlds on the same server. When set to silent, no chat messages are sent when players unlock advancements.
Player versus Player
/world pvp [enable/disabled]
Toggles PVP on or off for a world.
Teleport to world spawn
/world spawn [worldname]
Teleports you to the spawn point of a world. Other than permissions for this command, you can set world-specific teleport permissions too. World enter permissions are also active.
Teleport to the last position on a group of worlds
/world rejoin [worldname]
Checks world inventory sharing rules for any worlds the player was last on, and teleports the player to that world at the last coordinates. If the player never played on any of these worlds before, the player is teleported to the world spawn of worldname.
Permissions: myworlds.world.rejoin.* - Allows rejoining any world myworlds.world.rejoin.[worldname] - Allows rejoining a world by this name
Load or save world configuration
/world config load
/world config save
Loads or saves world configuration, from/to the worlds.yml file.
Teleport to portal or world spawn
/tpp bergerkiller max mogers World2
/tpp alfa beta Home
/tpp [player1] [player2] [player3] [world/portalname]
/world teleport [worldname]
/world tp [worldname]
Teleports you, or the players specified, to the portal or spawn point of a world. Other than permissions for this command, you can set world-specific and portal-specific teleport permissions too. World and portal enter permissions are also active. The portals are listed, like the world portals command, when the portal is not found.
myworlds.tpp - Allows the player to teleport himself, or other players, to any world or portal myworlds.portal.teleport.[portalname] - Allows a player to use /tpp to teleport to portal [name]. Can not teleport other players. myworlds.world.teleport.[worldname] - Allows a player to use /tpp to teleport to world [name]. Can not teleport other players. myworlds.world.enter.[worldname] - Allows a player to enter world [name]. Is important for this command, and for entering portals in the world. By default OP-only.