MyWorlds Commands

Sep 5, 2020
MyWorlds Commands
  • Preface

    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:
    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 Creation
    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 (generator-settings)
    Postfix without the name:
    • worldname/nether: Nether world, but named 'worldname'
    • 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 above, BananaSpace is used.

    Search for custom world generator plugins here on Spigot

    Use the following command to list plugins on the server that offer a world generator:

    World listing
    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
    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.

    • (for specifying custom generator)

    World copying, repair and deletion
    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 information
    Shows information of a world, such as the seed, time, weather and other set properties.


    World autosave and saving
    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 *.

    • (autosave)

    Keep world spawn area loaded
    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
    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.


    Portal listing
    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
    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.

    Give a portal item
    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
    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].


    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
    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.


    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.


    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.


    Game mode
    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.

    • (players with this permission as unaffected by world game modes)

    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'.


    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
    Toggles PVP on or off for a world.


    Teleport to world spawn
    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
    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.

    •* - Allows rejoining any world
    •[worldname] - Allows rejoining a world by this name

    Load or save world configuration
    Loads or saves world configuration, from/to the worlds.yml file.


    Teleport to portal or world spawn
    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.
    •[worldname] - Allows a player to use /tpp to teleport to world [name]. Can not teleport other players.
    •[worldname] - Allows a player to enter world [name]. Is important for this command, and for entering portals in the world. By default granted.
  • Loading...
  • Loading...