mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-11 12:51:30 +01:00
Lore option & some more documentation
This commit is contained in:
parent
0c69a4d259
commit
e442d030ad
@ -213,6 +213,10 @@ public class StatManager {
|
|||||||
case "text":
|
case "text":
|
||||||
register(new StringStat(statId, Material.PAPER, name, lore, new String[]{"!miscellaneous", "!block", "all"}));
|
register(new StringStat(statId, Material.PAPER, name, lore, new String[]{"!miscellaneous", "!block", "all"}));
|
||||||
break;
|
break;
|
||||||
|
case "text-list":
|
||||||
|
register(new StringListStat(statId, Material.PAPER, name, lore, new String[]{"!miscellaneous", "!block", "all"}));
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new RuntimeException("Cannot register a custom stat of type " + type);
|
throw new RuntimeException("Cannot register a custom stat of type " + type);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
# Add as many custom stats as you want below
|
# Add as many custom stats as you want below
|
||||||
|
# -
|
||||||
|
# For each custom stat you add, you must also add a corresponding
|
||||||
|
# entry in the lore-format.yml and stats.yml files
|
||||||
custom-stats:
|
custom-stats:
|
||||||
|
|
||||||
# The key doesn't really matter, although it must be unique
|
# The key doesn't really matter, although it must be unique
|
||||||
@ -13,4 +16,9 @@ custom-stats:
|
|||||||
# - boolean (true/false)
|
# - boolean (true/false)
|
||||||
# - text
|
# - text
|
||||||
# - text-list (a list of string)
|
# - text-list (a list of string)
|
||||||
type: "double"
|
type: "double"
|
||||||
|
|
||||||
|
# The lore must be a list of strings
|
||||||
|
lore:
|
||||||
|
- "This is a test line #1"
|
||||||
|
- "This is a test line #2"
|
@ -30,6 +30,7 @@ lore-format:
|
|||||||
- '#profession-woodcutting#'
|
- '#profession-woodcutting#'
|
||||||
# - '{bar}&8&m--------&f&l &nStatistics&8 &m-------------'
|
# - '{bar}&8&m--------&f&l &nStatistics&8 &m-------------'
|
||||||
- '{bar}'
|
- '{bar}'
|
||||||
|
- '#custom-myluck#'
|
||||||
- '#can-identify#'
|
- '#can-identify#'
|
||||||
- '#can-deconstruct#'
|
- '#can-deconstruct#'
|
||||||
- '#can-deskin#'
|
- '#can-deskin#'
|
||||||
|
Loading…
Reference in New Issue
Block a user