MonitoringMinecraft MonitoringMinecraft

LoreEditor

Плагин PaperPurpurSpigot

Плагин для Майнкрафт: редактирование описания предметов на уровне пакетов для Spigot и его форков.

233 скачивания 1 подписчик
Оцените первым

LoreEditor

Packet-level item lore modification for Spigot and its forks.

⚠️Warning

This plugin only supports versions listed in the Modrinth page. Other versions will NOT work.

Check your server version before downloading the plugin!

✨Features

  • Add lore lines to items, without affecting an actual item.

📥Installation

You can download the latest version of LoreEditor from the Modrinth and then place it in your plugins folder.

🔧Developer API

LoreEditor provides a simple API for developers to use.

💻Dependency

📝plugin.yml

To use LoreEditor in your plugin, you need to add the following to your plugin.yml:

depend: [LoreEditor]
Maven

If you are using Maven, add the following to your <repositories> tag in pom.xml:

<repository>
    <id>azisaba</id>
    <url>https://repo.azisaba.net/repository/maven-public/</url>
</repository>

And add the following to your <dependencies> tag in pom.xml:

<dependency>
    <groupId>net.azisaba.loreeditor</groupId>
    <artifactId>api</artifactId>
    <version>[version]</version>
    <scope>provided</scope>
    <classifier>all</classifier> <!-- don't forget "all" classifier -->
</dependency>
Gradle (Kotlin DSL)
repositories {
    maven("https://repo.azisaba.net/repository/maven-public/")
}

dependencies {
    compileOnly("net.azisaba.loreeditor:api:[version]:all") // don't forget "all" classifier
}

⌨️Usage

Add lore lines
import net.azisaba.loreeditor.api.event.EventBus;
import net.azisaba.loreeditor.api.event.ItemEvent;
import net.azisaba.loreeditor.libs.net.kyori.adventure.text.Component;
import org.bukkit.plugin.java.JavaPlugin;

public class TestPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        // In LoreEditor, we use EventBus to listen for events.
        // This example adds "Hello, world!" to the lore of the every item.
        // Please note that blocking operations (such as file IO and database operations) should not be performed in the event listener.
        EventBus.INSTANCE.register(this, ItemEvent.class, 0, e -> {
            e.addLore(Component.text("Hello, world!"));
            // more lore lines...
        });
    }

    // we don't need to unregister the listener because LoreEditor will handle it.
}

📜License

LoreEditor is licensed under the GNU General Public License v3.0.

Смотри также

Похожие подборки плагины — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
1449 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
Battle Mine
Battle Mine Java + BE
10 онлайн
1.21.4 — 26.2 версия
ОТКРЫТИЕ! 20 + различных ивентов, 10+ различных боссов, много интересных механник
MigosMc
MigosMc Java + BE
1448 онлайн
1.8 — 26.2 версия
🌿 MigosMc.net | Гриферский сервер с войс-чатом | Награды за онлайн ⭐ ВЫЖИВАНИЕ⭐ ОДИНБЛОК⭐ МИНИ-ИГРЫ
AxisMine - ВаниллаPlus
27 онлайн
1.21.4 — 26.1.2 версия
Ванильный мир с сотнями уникальных механик и справедливой игрой! /free, pat-pat, emotecraft, Voice.
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.8. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат