Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Types

The following are the types used within the configuation files of the plugin.

Primitives

typedescriptionexample
intAn integer number.-3
uintAn positive integer number.7
longA large integer number.-2147483649
ulongA large positive integer number.4294967326
boolEither true or false.true
decimalA decimal floating point number.1.2
stringA string of text.“example”
listA list of a type, if not specified it will be a list of strings.[“example”]

Some types will be marked as optional. This just means that they don’t need to be specified. Setting these values as null is the same as not specifying them. When not set, they may be removed from the configuation file upon plugin reload.

Map

A map is a mapping from a key to a value. A map has a type for its key, and a type for its value. These docs will show map as map<key,value> where key and value are the types.

An eample map is shown below. This map is from string to uint. Note the two space indentation.

enchantments:
  knockback: 7
  sharpness: 3

Item

An item type represents a physical item given to players that is held in their inventory.

namedescriptiontypedefault
nameThe name of the item.optional stringnull
materialThe material/type of the item. If invalid the item will not be given to the player.string“BLOCK”
loreLore to be shown when hovering over the item.list[]
enchantmentsMap of enchantment names to their level.map<string, int>{}
unbreakableIf the item has unlimited durabality.optional boolnull
modelDataThe block data field used in minecraft versions prior to 1.13.optional uintnull
ownerThe owner of skull given the item is a skull.optional stringnull
effectThe potion effect given the item is a potion.optional stringnull
slotThe inventory slot this item will always be put in. If not set it will be put in the net availiable slot.optional uintnull

Effect

A potion effect that will be applied to players depending on the situation.

namedescriptiontypedefault
typeThe type of potion effect.string“NONE”
durationThe length in seconds that the effect will last.uint60
amplifierThe amplifier of the potion effect.uint1
ambientMarks the surrounding particles as semitransparent and less visually intrusive.booltrue
particlesHides the surrounding particles.booltrue