Module: Invulnerability - Module ID: invulnerability

Introduction

Enables players to go invulnerable. Players who are invulnerable will not be targeted by mobs.

Disabling PvP for invulnerable players

Sometimes, it is desirable to prevent invulnerable players from attacking others. As from 1.2.2, enabling the feature in main.conf (disable-pvp-on-god) will activate this behaviour, overridable by granting the permission nucleus.god.pvp.override to select players.

Permission Contexts

When players are invulnerable, Nucleus adds a permission context to the player permission set, so that you can change a player’s permissions when they are invulnerable.

Nucleus applies one context:

  • nucleus-invulnerable will simply have the value “true” if the player is invulnerable.

Refer to your permission plugin documentation on how to set permissions on contexts.

/god
Module: invulnerability
Set specified player's invulnerability status.

Aliases: god invuln invulnerability

Root command aliases: /ngod

Usage: /god [<player>] [<true|false>]

Default Role: ADMIN

Basic Command Permission: nucleus.god.base

Permissions

  • nucleus.god.base - Default Role: ADMIN
    Allows the user to run the command /god
  • nucleus.god.pvp.override - Default Role: ADMIN
    Allows the user to attack players when invulnerable, if the PvP disable on invulnerability feature is set.
  • nucleus.god.others - Default Role: ADMIN
    Allows the user to target other players using the command "god".

This command is an equivalent to the following command(s) in Essentials: /god, /godmode, /tgm

Permission Suggested Role Description
nucleus.god.base ADMIN Allows the user to run the command /god
nucleus.god.others ADMIN Allows the user to target other players using the command "god".
nucleus.god.pvp.override ADMIN Allows the user to attack players when invulnerable, if the PvP disable on invulnerability feature is set.
The following configuration is the default for this module:
# If true, players that are invulnerable will not be able to attack other players or entities without the nucleus.god.pvp.override permission
disable-pvp-on-god=false
# If true, in order to keep invulnerability on login, the permission for the god command (nucleus.god.base) is required. If false, a player without access to the /god will not be invulnerable on login.
require-god-permission-on-login=false