Effects Configuration

The effects allow you to create consumable items giving extra stats to players who consume them.

Creating Effects

To create new effects, open (or create) the effects.yml file in the RPProfessions folder and add a new (unique) entry in it:

CRITICAL_STRIKE_CHANCE_POTION_I:
  # The rest follows

MMO Effects

As of today, only MMO effects can be created. This means you can only create effects giving stats from plugins using MythicLib.

Options

mmo-id

The mmo-id is the key which the effect will be registered under. You cannot have 2 different effects with the same mmo-id.

mmo-id: CRITICAL_STRIKE_CHANCE_POTION # Doesn't have to be equal to the effect name

duration

The duration sets how much time (in seconds) the effect should last.

duration: 900 # 900 seconds = 15 minutes

mmo-stats

The mmo stats to give to the player.

mmo-stats:
  CRITICAL_STRIKE_CHANCE: 0.5
  CRITICAL_STRIKE_POWER: 0.1
  # Any stats registered by one of the MythicLib plugins can go there (even custom ones).

The stats id are equal to the stat (in-game) name fully capitalised, and where all spaces are replaced by underscores ('_').

E.g.: Max Health -> MAX_HEALTH

save-on-quit

Whether to save the effect's state when the player leaves the server (i.e. how much time remains).

save-on-quit: true

persistent-through-death

Whether the effect remains after the player dies.

persistent-through-death: true

Last updated