PvP (Player versus Player) allows players to fight against each other. This setting is configured per world and is disabled by default.
How to Enable or Disable PvP via Configuration
-
Stop the Server
Stop your server via the dashboard. -
Open the World Configuration
Connect to your server via SFTP and navigate to:/universe/worlds/<worldname>/config.jsonReplace
<worldname>with the name of your world (e.g.,default). -
Change the PvP Setting
Find theIsPvpEnabledsetting and change the value:"IsPvpEnabled": truetrue- PvP enabledfalse- PvP disabled (default)
-
Start the Server
Start your server for the changes to take effect.
How to Enable PvP via Command
With a command, you can toggle PvP while the server is running. The change takes effect immediately and is saved in the world configuration, so no restart is needed.
-
Open the Dashboard
Open the dashboard of your Hytale server. -
Enter the Command
Enter the following command in the console:world config pvp true --world defaultReplace
defaultwith the name of your world. To disable PvP, usefalse:world config pvp false --world defaultThe console currently replies with
PvP disabled for defaultin both cases, even when you enable PvP. The setting is still saved correctly. To see the actual state, useworld settings pvp --world default, e.g.,PvP in world "default" is currently true.
Admins can also toggle PvP directly in-game. Without --world, the command applies to the world you are currently in:
/world config pvp true
