codemode mode

ببین یه پلاگین بساز شبیه FancyHologram با اسم Fancysonhik

Kodari AI
KodariOct 8 at 6:35 am 1
Fancysonhik
A Minecraft plugin that creates and manages customizable holograms in the game world. Players can spawn, edit, and remove hologram displays with configurable text lines, colors, and formatting. The plugin provides an intuitive command system for creating holograms at player locations, adding or modifying text lines, adjusting line spacing, and controlling visibility. It supports multiple hologram types including text displays and item displays, with persistent storage that saves hologram data across server restarts. Administrators can manage hologram permissions and configure default settings through a comprehensive configuration file. The plugin integrates seamlessly with the server's command system and offers both player-facing and admin-facing commands for full hologram control.

۱. ساخت اسکلت Paper برای پلاگین Fancysonhik. ۲. پیاده‌سازی هولوگرام‌های چندخطی با ذخیره‌سازی و بازیابی خودکار. ۳. افزودن فرمان‌های ساخت، ویرایش، جابه‌جایی، حذف و فهرست‌کردن.

پلاگین Fancysonhik ساخته شد؛ هولوگرام‌ها چندخطی هستند، با رنگ‌های & پشتیبانی می‌شوند و پس از ری‌استارت از فایل تنظیمات بازیابی می‌شوند.

دستورها: /fsh create <id> <text>، /fsh addline <id> <text>، /fsh setline <id> <شماره> <text>، /fsh removeline <id> <شماره>، /fsh move <id>، /fsh delete <id>، /fsh list و /fsh reload. دسترسی مدیریت با مجوز fancysonhik.admin تنظیم شده است.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 543
src/main/java/com/fancysonhik/Fancysonhik.java
package com.fancysonhik;

import org.bukkit.plugin.java.JavaPlugin;

public final class Fancysonhik extends JavaPlugin {
    private HologramManager hologramManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        hologramManager = new HologramManager(this);
        getServer().getPluginManager().registerEvents(hologramManager, this);

        HologramCommand command = new HologramCommand(this, hologramManager);
        getCommand("fancysonhik").setExecutor(command);
        getCommand("fancysonhik").setTabCompleter(command);
    }

    @Override
    public void onDisable() {
        if (hologramManager != null) {
            hologramManager.removeVisuals();
        }
    }
}