crowzzw

Create me a plugin for my server create a like a cool plugin'

Kodari AI
KodariAug 9 at 6:29 pm 9
CoolPlugin
A feature-rich Minecraft server plugin that adds customizable player commands, interactive GUI menus, and configurable gameplay enhancements. The plugin provides a command system with permission-based access, a graphical inventory interface for managing plugin settings, and modular features such as player warps, kit distribution, and server announcements. It includes a YAML configuration system for server owners to customize messages, cooldowns, and enabled modules without code changes. The plugin integrates with the Bukkit API, offering event listeners for player interactions and scheduled tasks for automatic features. Designed for performance and ease of use, it enhances the server experience with minimal setup.

Created Wayfinder, a Paper plugin with persistent personal waypoints and live compass navigation.

  • /waypoint set <name> — save current position

  • /waypoint track <name> — compass and action-bar distance tracker

  • /waypoint stop — disable tracking

  • /waypoint list — view saved locations

  • /waypoint remove <name> — delete a waypoint

  • Configurable waypoint limit, tracker interval, and messages

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 564
src/main/java/com/kodari/wayfinder/WayfinderPlugin.java
package com.kodari.wayfinder;

import com.kodari.wayfinder.command.WaypointCommand;
import com.kodari.wayfinder.listener.WayfinderListener;
import com.kodari.wayfinder.manager.WaypointManager;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class WayfinderPlugin extends JavaPlugin {

    private WaypointManager waypointManager;

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

        waypointManager = new WaypointManager(this);
        waypointManager.startTrackingTask();

        WaypointCommand waypointCommand = new WaypointCommand(this, waypointManager);
        PluginCommand command = getCommand("waypoint");
        if (command != null) {
            command.setExecutor(waypointCommand);
            command.setTabCompleter(waypointCommand);
        }

        getServer().getPluginManager().registerEvents(new WayfinderListener(waypointManager), this);
    }

    @Override
    public void onDisable() {
        if (waypointManager != null) {
            waypointManager.shutdown();
        }
    }

    public WaypointManager getWaypointManager() {
        return waypointManager;
    }
}