The RPGItems2 plugin continued from TheCreeperOfRedstone/RPG-Items-2
LangUtils is needed and no longer need to install NyaaCore.
This is a personal fork. Only the branch 1.16
is supported. I add LoreUpdateEvent so it is friendly to SoulBinding-kind plugins.
repositories {
mavenCentral()
}
dependencies {
implementation 'top.mrxiaom:rpgitems:3.11.6:all'
}
I uploaded it to central. It is easy to depend it. :P
class MyEventListener implements Listener {
@EventHandler
public void onLoreUpdate(LoreUpdateEvent e) {
// cat.nyaa.nyaacore.utils.ItemTagUtils
String owner = ItemTagUtils.getString(event.item, "bind_owner").orElse(null);
if (owner != null) {
e.newLore.add("");
e.newLore.add(ColorHelper.parseColor("&aBound to &2" + owner));
}
}
}
- LoreUpdateEvent
- LoreUpdateEvent.Post (aim at edit NBT)
- Gradient color support
- More friendly and developer comfortably help command
- More friendly Chinese translation with color
- Read-only mode
- BungeeCord notice read-only server to reload
We will publish the functional update and bug fixing. We WON'T publish the powers, triggers and conditions we made. They are packaged into an extension in our server.