Skip to content

SweetRiceMC/RPGItems-reloaded

 
 

Repository files navigation

RPGItems SweetRice Fork

The RPGItems2 plugin continued from TheCreeperOfRedstone/RPG-Items-2

LangUtils is needed and no longer need to install NyaaCore.

Fork

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

LoreUpdateEvent Example

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));
        }
    }
}

What's new

  • 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

Accessible

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.

Resources

Original Wiki

Packages

No packages published

Languages

  • Java 100.0%