MonitoringMinecraft MonitoringMinecraft

ForestCore

Плагин Paper

API-плагин для Майнкрафт.

71 скачивание 0 подписчиков
Оцените первым

ForestCore

A plugin that adds several features at once for my plugins

Key Features

1. Update system

  • Automatic update check via Modrinth
  • Notifications about available updates in the console
  • Support for all plugins connected to ForestCore

2. Color system

  • HEX color support (&#000000)
  • Vanilla color support (&f)
  • Convenient ColorUtils.colorize() method for use in plugins

3. Plugin management menu

  • View all connected plugins
  • Display information about each plugin:
    • Name
    • Version
    • Plugin ID
    • Operation status
  • Ability to edit plugin configuration directly from the menu

4. Command system

  • /fcore - basic information about ForestCore
  • /fcore help - list of all commands
  • /fcore help <plugin-id> - commands of a specific plugin
  • /fcore reload <plugin-id> - reload plugin configuration
  • /fcore menu - open plugin management menu
  • /fcore <plugin-id> - information about a specific plugin

Installation

For servers

  1. Download the latest version of ForestCore-1.0-SNAPSHOT.jar from the target folder after building the project
  2. Place the file in the plugins folder of your server
  3. Restart the server
  4. ForestCore is ready to use!

For developers

Connecting the plugin to ForestCore

1. Adding a dependency

In your plugin's pom.xml add:

<repositories>
    <repository>
        <id>github</id>
        <name>GitHub Packages</name>
        <url>https://maven.pkg.github.com/camper_crafting/ForestCore</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>ru.forestcore</groupId>
        <artifactId>ForestCore</artifactId>
        <version>1.0-SNAPSHOT</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

2. Adding dependency to plugin.yml

depend: [ForestCore]

3. Registering the plugin

In the onEnable() method of your plugin:

ForestCore forestCore = (ForestCore) Bukkit.getPluginManager().getPlugin("ForestCore");
if (forestCore != null) {
    ForestPlugin forestPlugin = new ForestPlugin(
        "Plugin Name",           // plugin name
        getDescription().getVersion(), // plugin version
        "plugin-id",                  // Unique plugin ID
        "camper_crafting",            // author's name
        "https://modrinth.com/plugin/your-plugin", // link to Modrinth
        "https://github.com/your-username/your-plugin", // link to GitHub
        Arrays.asList(                // List of plugin commands
            "/command1 - Command Description 1",
            "/command2 - Command Description 2"
        )
    );
    forestCore.getPluginManager().registerPlugin("plugin-id", forestPlugin);
}

Use of colors

HEX colors

String message = ColorUtils.colorize("&#FF0000Red text");

Vanilla colors

String message = ColorUtils.colorize("&cRed text");

Color combination

String message = ColorUtils.colorize("&#FF0000Red text &aand green text");

Plugin Example

There is an example-plugin.yml in the repository called ExamplePlugin that demonstrates:

  • Connecting to ForestCore
  • Using colors
  • Registering commands
  • Integrating with ForestCore menus

Requirements

  • Minecraft 1.16.5
  • Paper/Spigot server
  • Java 8 or higher

Support

If you have any problems or questions, please create an Issue in the GitHub repository.

Смотри также

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

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

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

SkyBars
SkyBars Java + BE
135 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
EVY-MC ЖДЕМ ИМЕННО ТЕБЯ
3 онлайн
1.21.1 — 1.21.11 версия
Уютное выживание с живой экономикой, голосовым чатом и 50 достижениями
BerryCraft
BerryCraft Java + BE
1 онлайн
1.21.8 — 26.2 версия
Пройди путь от хаоса анархии до работы на складе с заказами и карьерным ростом
Battle Mine
1 онлайн
1.21.4 — 26.2 версия
ОТКРЫТИЕ! 20 + различных ивентов, 10+ различных боссов, много интересных механник
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.8. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат