Hamza Abdullah

make it dountsmp all thigs

Kodari AI
KodariOct 17 at 10:17 am 1
DountSMPCore
DountSMPCore is a comprehensive Minecraft plugin designed for the DountSMP server, providing essential gameplay enhancements and quality-of-life features. The plugin includes a custom player economy system with balance tracking, a robust homes system allowing players to set and teleport to multiple locations, and a warps system for server-wide teleportation points. It features a kit system with configurable rewards, a permissions-based command framework, and an intuitive GUI menu system for managing player settings. The plugin also implements a player data storage solution using YAML files, ensuring persistent data across restarts. Additional features include player-to-player teleportation requests, a spawn system, and customizable join/quit messages. All commands are fully configurable with permission nodes, making it adaptable to any server setup.
  1. Set up a Paper plugin project named DonutSMP.

  2. Add persistent player balances and homes, plus spawn and teleport requests.

  3. Add RTP, starter kit, and staff utility commands with configurable defaults.

Created a DonutSMP-style Paper plugin foundation with homes, spawn, teleport requests, RTP, a persistent economy with /pay, a one-time starter kit, and staff /heal, /feed, and /fly commands.

This is a core starter suite—not a full recreation of every DonutSMP system. Auctions, claims, crates, and custom enchants aren’t included yet.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 662
src/main/java/com/kodari/donutsmp/DonutSMPPlugin.java
package com.kodari.donutsmp;

import org.bukkit.Location;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class DonutSMPPlugin extends JavaPlugin {
    private PlayerDataStore dataStore;
    private TeleportManager teleportManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        dataStore = new PlayerDataStore(this);
        teleportManager = new TeleportManager(this);

        DonutCommand commandHandler = new DonutCommand(this);
        String[] commands = {
            "spawn", "setspawn", "sethome", "home", "homes", "delhome",
            "tpa", "tpaccept", "tpdeny", "balance", "pay", "rtp",
            "kit", "heal", "feed", "fly"
        };
        for (String name : commands) {
            PluginCommand command = getCommand(name);
            if (command != null) {
                command.setExecutor(commandHandler);
                command.setTabCompleter(commandHandler);
            }
        }
    }

    @Override
    public void onDisable() {
        if (dataStore != null) {
            dataStore.save();
        }
    }

    public PlayerDataStore dataStore() {
        return dataStore;
    }

    public TeleportManager teleportManager() {
        return teleportManager;
    }

    public Location getSpawn() {
        return getConfig().getLocation("spawn");
    }

    public void setSpawn(Location location) {
        getConfig().set("spawn", location);
        saveConfig();
    }
}