Commands and permissions - hotwopik/WorldMagic GitHub Wiki

Commands

This page about plugin commands and permissions.

Main plugin command is /worldmagic. It can be spelled shorter via /wm.
Command let you setting up worlds, create new worlds and reload the plugin.

Note

Command syntax note
<argument> - required argument
[<argument>] - optional argument
first|second - one of

World management commands

Command to setting up worlds

load

Syntax: /worldmagic world <world id> load
Permission: worldmagic.command.world and worldmagic.command.world.load (both required)
Arguments:

  • world id - World Magic world id

Description: Load unloaded plugin worlds

unload

Syntax: /worldmagic world <world id> unload
Permission: worldmagic.command.world and worldmagic.command.world.load (both required)
Arguments:

  • world id - World Magic world id

Description: Unload loaded plugin worlds

delete

Syntax: /worldmagic world <world id> delete
Permission: worldmagic.command.world and worldmagic.command.world.delete (both required)
Arguments:

  • world id - World Magic world id

Description: Unload and delete plugin world from plugin world list

gamerule

Syntax: /worldmagic world <world id> gamerule <gamerule name> [<gamerule value>]
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • gamerule name - minecraft gamerule name
  • gamerule value - value to setting up. If not present, gamerule will be queried

Description: Query or set gamerule in the world

difficulty

Syntax: /worldmagic world <world id> difficulty [<value>]
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • value - difficulty to setting up. If not present, difficulty will be queried

Description: Query or set difficulty in the world

weather

Syntax: /worldmagic world <world id> weather [<value>]
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • value - weather to setting up. If not present, weather will be queried

Description: Query or set weather in the world

time set|add

Syntax: /worldmagic world <world id> time set|add <value>
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • value - time to add or set

Description: Add or set time in the world

time query

Syntax: /worldmagic world <world id> time query world-exists|days|hours|hours-in-day
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id

Modes:

  • world-exists - count which world exists
  • days - number of days that have passed in relative time
  • hours - number of ticks that have passed in relative time
  • hours-in-day - number of ticks in current day in relative time

Description: Query world time

spawn

Syntax: /worldmagic world <world id> spawn <pos> [<yaw>]
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • pos - block position where spawn should be placed
  • yaw - horizontal rotation in degrees of players on spawn, defualt to 0

Description: Setup world default spawnpoint

move

Syntax: /worldmagic world <world id> move <target> here|spawn|(<pos> [<rotation>])
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • pos - position where entity should be teleported
  • rotation - rotation to be applied to the entity

Modes:

  • here - move to execution position and rotation
  • spawn - move to world spawn

Description: Move some entity to specified position in the world

border add|set

Syntax: /worldmagic world <world id> border add|set <distance> [<time>]
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • distance - distance to apply in blocks
  • time - time in milliseconds to make transition between old and new border sizes, default to 0

Description: Change world border size

border center

Syntax: /worldmagic world <world id> border center <x> <z>
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • x - x pos of center
  • z - z pos of center

Description: Change world border center

border damage amount

Syntax: /worldmagic world <world id> border damage amount <value>
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • value - value to setup

Description: Setup count of damge per block out of safe zone

border damage buffer

Syntax: /worldmagic world <world id> border damage buffer <distance>
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • value - distance from world border in blocks

Description: Setup safe zone out from world border without damage

border warning distance

Syntax: /worldmagic world <world id> border warning distance <value>
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • value - distance from world border where vignette displays

Description: Setup zone near to world border where vignette displays

border warning time

Syntax: /worldmagic world <world id> border warning time <value>
Permission: worldmagic.command.world
Arguments:

  • world id - World Magic world id
  • value - time in seconds for vignette appearence

Description: Setup vignette appearence time

World creation command

Command to create new worlds

Syntax: /worldmagic create <prototype> <id> [<bukkitId>] [<folder>]
Permission: worldmagic.command.create
Arguments:

  • prototype - world file id to create world from
  • id - creating world id
  • bukkitId - creating world bukkit id, default to vanilla id
  • folder - creating world folder, default to bukkit id

Description: Create new world from world file

Reload command

Syntax: /worldmagic reload [economy]
Permission: worldmagic.command.reload
Modes:

  • economy - reload economy plugin hook

Description: Reload plugin config and world files or economy hook

Permissions

Extra permission list

  • worldmagic.* - all plugin permissions
  • worldmagic.command.* - all command permissions
  • worldmagic.bypass.* - all bypass permissions
  • worldmagic.bypass.forcegm - bypass forced gamemodes in the worlds
  • worldmagic.bypass.permissions - bypass permissions required in the worlds
  • worldmagic.bypass.payment - bypass entrance payment in the worlds
⚠️ **GitHub.com Fallback** ⚠️