S

reoptimized or enhances performance by utilizing regionized multithreading. Here are some key features:

Multithreading: Folia allows for true multithreading, distributing the game world into regions that tick independently on separate threads, improving scalability and performance.

Regionized Ticking: Each region has its own tick loop, which is executed on a thread pool in parallel, allowing for better management of player locations and entities.

Performance Optimization: Folia is particularly beneficial for servers with high player counts, such as SkyBlock or SMP, as it can handle more players without performance degradation.

Sent banner (GREEN COLOR)========================== AnungInfo Made By AnunglT (GREEN COLOR)==========================

Kodari AI
KodariAug 26 at 1:01 am 1

What would you like me to do with this text—rewrite it, format it as a Minecraft plugin message/banner, or implement Folia regionized scheduling in your project?

S

both yes

Kodari AI
KodariAug 26 at 1:06 am 1
  1. Format the announcement as a clean green Minecraft banner.

  2. Add Folia-compatible regionized scheduling to the existing project without breaking standard Bukkit/Paper support.

Formatted banner:

Plain Text
& a========================================
& a              AnungInfo
& a           Made by AnunglT
& a========================================

Use &a for the green color (without the space shown in the code block: &a).The project already contains FoliaLib, Folia scheduling, and folia-supported: true; I’m verifying the exact implementation before deciding whether any code change is necessary.

Rewritten description

AnungInfo is optimized for Folia servers and enhances performance through regionized multithreading.

  • Multithreading: Folia distributes world processing across independent region threads.

  • Regionized ticking: Each region runs its own tick loop, allowing regions to process in parallel.

  • Performance optimization: Ideal for high-player-count servers such as SkyBlock and SMP, helping reduce performance degradation.

  • Folia compatibility: Uses FoliaLib for safe region, entity, and global scheduling.

Minecraft banner

Plain Text
&a========================================
&a              AnungInfo
&a           Made by AnunglT
&a========================================

Folia support is already implemented in the project:

  • folia-supported: true is enabled in paper-plugin.yml.

  • FoliaLib is included in build.gradle and manifest.kod.

  • Region tasks use runAtLocationTimer(...).

  • Player tasks use runAtEntity(...).

  • Global monitoring uses FoliaLib’s global scheduler.

  • Tasks are cancelled during plugin shutdown.

No additional Folia code changes are required.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
10 816
src/main/java/anunglt/AnungInfoPlugin.java
package anunglt;

import com.tcoded.folialib.FoliaLib;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class AnungInfoPlugin extends JavaPlugin {
    private FoliaLib foliaLib;
    private RedstoneListener redstoneListener;
    private RegionPerformanceMonitor regionPerformanceMonitor;
    private AnungInfoCommand anungInfoCommand;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        foliaLib = new FoliaLib(this);

        redstoneListener = new RedstoneListener(
                foliaLib,
                getConfig().getBoolean("redstone.enabled", true),
                getConfig().getInt("redstone.tick-radius", 2),
                getConfig().getInt("redstone.max-updates-per-tick-per-region", 1000),
                getConfig().getBoolean("redstone.disable-in-unloaded-adjacent-chunks", true)
        );
        regionPerformanceMonitor = new RegionPerformanceMonitor(
                redstoneListener,
                getConfig().getDouble("monitor.thresholds.region-mspt", 40.0)
        );
        regionPerformanceMonitor.startAlerts(
                foliaLib,
                getConfig().getInt("monitor.alert-interval-seconds", 10)
        );
        Bukkit.getPluginManager().registerEvents(redstoneListener, this);

        anungInfoCommand = new AnungInfoCommand(
                this,
                regionPerformanceMonitor,
                getConfig().getDouble("monitor.thresholds.cpu-utilisation-percent", 85.0),
                getConfig().getDouble("monitor.thresholds.mspt", 40.0),
                getConfig().getDouble("monitor.thresholds.tps", 18.0),
                getConfig().getDouble("monitor.thresholds.region-mspt", 40.0)
        );
        registerCommand("anunginfo", anungInfoCommand);
    }

    public void reloadRedstoneSettings() {
        reloadConfig();
        redstoneListener.reconfigure(
                getConfig().getBoolean("redstone.enabled", true),
                getConfig().getInt("redstone.tick-radius", 2),
                getConfig().getInt("redstone.max-updates-per-tick-per-region", 1000),
                getConfig().getBoolean("redstone.disable-in-unloaded-adjacent-chunks", true)
        );
        regionPerformanceMonitor.reconfigureThresholds(
                getConfig().getDouble("monitor.thresholds.region-mspt", 40.0)
        );
        anungInfoCommand.reconfigureThresholds(
                getConfig().getDouble("monitor.thresholds.cpu-utilisation-percent", 85.0),
                getConfig().getDouble("monitor.thresholds.mspt", 40.0),
                getConfig().getDouble("monitor.thresholds.tps", 18.0),
                getConfig().getDouble("monitor.thresholds.region-mspt", 40.0)
        );
    }

    @Override
    public void onDisable() {
        if (foliaLib != null) {
            foliaLib.getScheduler().cancelAllTasks();
        }
    }
}