Skip to content

Flags and Game Rules

Alexander Söderberg edited this page Apr 24, 2020 · 12 revisions

Flags

Flags allow you to customize per-world options. A flag in Hyperverse is a world property with a well defined value type.

Flags are set using the /world flag set <world> <flag> <value> command, and a flag can be unset using /world flag remove <flag>

Available Flags

These flags are currently implemented:

force-spawn:
Description: Whether or not players should be teleported to the world spawn each time they enter the world
Note: This flag is only used when persist-locations is enabled in the configuration file
Values: true/false
Default: false

gamemode:
Description: World gamemode. This is enforced when a player enters a world.
Values: survival, creative, adventure, spectator
Default: survival

local-respawn:
Description: Whether or not players should respawn at their beds/global spawn, or respawn in this world if they die inside it
Values: true, false
Default: false

pvp:
Description: Whether or not player vs. player combat is enabled in the world
Values: true, false
Default: true

pve:
Description: Whether or not player vs. entity combat is enabled in the world
Values: true, false
Default: true

world-permission:
Description: Permission node required to visit the world
Values: Strings containing alphanumerical characters, -, _ and .
Default: ""

nether:
Description: Decides which world this world's nether portals link to
Values: World names. "disabled" to disable. Remove for vanilla behaviour.
Default: ""

end:
Description: Decides which world this world's end portals link to
Values: World names. "disabled" to disable. Remove for vanilla behaviour.
Default: ""

difficulty:
Description: World difficulty
Values: peaceful, easy, normal and hard
Default: normal

Game Rules

Hyperverse allows you to configure most vanilla game rules (here is a list) per world.

Use /world gamerule set <rule> <value> to set a game rule, and /world gamerule remove <rule> to remove it.