-
Notifications
You must be signed in to change notification settings - Fork 0
Plot types
Plot types are used to create different variants on your server, for example rentable plots.
This different variants may work different, depending on the attached plot definition.
The simplest example would be using plot types for different sized plots.
Important
Plot definitions are an upcoming feature in the v1.24 update of Plots. They aren't available in previous versions!
Plot types declare a permission any player must have to be able to claim a plot of a given type, as long as the plot type allows claiming at all.
Plot type permissions are constructed with plots.type. followed by the plot type name, for example plots.type.basic for the basic plot type.
Plot types are declared in config
plot-types:
list:
- basic &a 1 plots:standard
- rentable &5 1 plots:rentable
- strand &e 1 plots:sandbox
- public &b 0 plots:public
and then used in commands to create them, for example /gs create <name> b.
A plot type has the mandatory parts name and color, and the both optional parts number of plots and plot definition.
If number of plots is omitted it will be interpreted as 1, as long as the given plot definition allows claiming.
If plot definition is omitted it will be interpreted as plots:standard which will be the default plot definition without any special behaviour.
So an absolute minimum for a plot type could be - basic &a.
Caution
Never remove plot type entries from that list AFTER you already created plots!
Plots without plot type may still be loaded but won't do anything and also prevent claiming of other plots if that invalid plot is already claimed.
Even renaming is considered removing as the plot types are identified by their name!
Warning
While you may reuse one color multiple times for multiple plot types, reuse of names is NOT allowed and will lead to errors.
Also you can't use names that reuse the same first character as other plot types are already using!
Basic and Strand can be used together, while Basic and Beach can't be used together because both start with B.
Before the upcoming v1.24 update of Plots, plot types are declared without the plot definition after them, for example - basic &a 1.
Also public and sandbox plot types can be set in config which will then modify the behaviour of said plot types to be unclaimable, and may allow any construction and destruction if set as sandbox type.
Note
Before v1.24 you could only set one plot type to work as public or sandbox type.
In v1.14_Pre and up to v1.16 plot types were created exactly as after v1.16 but there were no sandbox or public types that could be set.
If a existing plot type used the name public it was instead used for public plots.
Before the v1.14_Pre update the plot types were hardcoded and couldn't be changed.
The following plot types were present:
- basic
- vip
- beach
- public (was always used for public plot)
Note
While basic was using the character B, the plot type beach used the character S.