von tung
📎 1 file 6,120 chars
📄
pasted-code-1790009143439.txt
txt 296 lines
▶
# Ultimate SMP Core — Minecraft 1.21+

Build a complete, modern **all-in-one SMP plugin** for Paper/Spigot **1.21+**. The plugin should replace the need for many separate SMP plugins while remaining lightweight, configurable, and easy to use.

## 🧊 UI & Design

* iOS-inspired **Liquid Glass** design
* Clean, modern, rounded GUI menus
* Glass/transparent visual style
* Smooth animations and transitions
* Dark, Light and Auto themes
* Multiple accent colours
* Fully customizable GUI colours
* Clean icons and consistent layouts
* Hover effects and subtle sounds
* Action bars, titles and notifications
* `/smp settings` GUI for personal preferences
* Players can choose their own theme
* Admins can customize the server-wide theme

## 🏠 Teleport & Travel

* `/spawn`
* `/sethome`, `/home`, `/delhome`
* Multiple homes with configurable limits
* `/tpa`
* `/tpahere`
* `/tpaccept` / `/tpdeny`
* `/back`
* `/rtp`
* RTP cooldowns and safe-location detection
* Warps
* Public/private warps
* Teleport cooldown and movement cancellation

## 🛡️ Protection

* Land claiming
* Claim trust system
* Claim flags
* Block protection
* Container protection
* PvP toggles
* Fire/lava protection
* Explosive protection
* Anti-grief systems
* World protection
* Spawn protection
* Configurable protected regions

## ⚔️ SMP Gameplay

* Combat tagging
* Combat-log prevention
* Kill/death tracking
* Kill streaks
* Death coordinates
* Death messages
* Assist tracking
* Bounty system
* Player statistics
* Playtime tracking
* First-join rewards
* Join/quit messages
* AFK system
* Custom AFK rewards
* Player levels
* XP progression
* Achievements
* Challenges
* Daily/weekly quests
* Leaderboards

## 👥 Social

* Teams
* Team chat
* Friend system
* Private messaging
* `/msg`, `/reply`
* Ignore system
* Player nicknames
* Social notifications
* Player profiles
* Custom player status
* Online player list
* Tab-list customization

## 💰 Economy

* Virtual economy
* `/balance`
* `/pay`
* `/eco`
* Admin economy controls
* Shops
* Player shops
* Auction House
* Buy/sell GUI
* Configurable prices
* Economy logs
* Vault support

## 🎁 Rewards

* Custom kits
* Kit cooldowns
* Daily rewards
* Weekly rewards
* Vote rewards
* Playtime rewards
* Kill rewards
* Achievement rewards
* Crate/key system
* Custom reward GUI

## 🧰 Utility

* `/craft`
* `/enderchest`
* `/anvil`
* `/smithingtable`
* `/stonecutter`
* `/grindstone`
* Inventory sorting
* Item repair
* Item inspection
* Coordinates display
* Server rules GUI
* Server info GUI
* Help menu
* Customizable MOTD

## 👮 Admin & Staff

**Every administrative command and dangerous feature must require OP or a configurable permission. Regular players must NEVER be able to access admin functions.**

* Staff mode
* Vanish
* Freeze
* Spectate
* Staff chat
* Player inspection
* Inventory inspection
* Ender chest inspection
* Kick
* Ban
* Temporary ban
* Mute
* Temporary mute
* Warn
* Clear inventory
* Teleport to player
* Teleport player
* Heal
* Feed
* Fly
* God mode
* Gamemode management
* Server-wide announcements
* Maintenance mode
* Player reports
* Report management
* Staff notes
* Admin audit logs

## 🔍 Moderation & Logging

* Block logging
* Container logging
* Player action logging
* Command logging
* Join/leave logging
* Chat moderation
* Anti-spam
* Anti-flood
* Anti-bot protection
* Configurable banned words
* Warning system
* Punishment history
* Investigation tools
* Rollback support
* CoreProtect integration

## 🌎 World Systems

* Multiple world support
* Per-world settings
* World borders
* RTP per world
* World-specific PvP
* World-specific commands
* Weather controls
* Time controls
* Mob controls
* Difficulty settings
* Spawn management
* Automatic backups

## 📊 Server Information

* TPS display
* MSPT display
* Online player count
* Server uptime
* Player ping
* Server performance GUI
* Memory usage
* World statistics
* Admin performance dashboard

## 🔌 Integrations

* PlaceholderAPI
* Vault
* LuckPerms
* DiscordSRV
* WorldEdit/FAWE
* CoreProtect
* ViaVersion
* Optional integrations must fail gracefully if the plugin is not installed.

## ⚙️ Configuration

Everything should be configurable through `config.yml` and separate configuration files where appropriate.

Include:

* Messages
* Permissions
* Cooldowns
* Limits
* Economy values
* Rewards
* GUI appearance
* Themes
* Sounds
* Teleport settings
* Claim settings
* Combat settings
* Moderation settings
* World settings

Add `/smp reload` for configuration reloading where safely possible.

## 🔐 Permissions

Use a proper permission system.

Example:

* `smp.player`
* `smp.admin`
* `smp.staff`
* `smp.moderation`
* `smp.teleport`
* `smp.economy`
* `smp.claims`

**Never rely only on hidden commands. Check permissions server-side for every privileged action.**

## 🚀 Performance

* Optimized for large SMPs
* Avoid unnecessary repeating tasks
* Async database operations where appropriate
* No constant expensive world scans
* Efficient player data storage
* SQLite by default
* MySQL/MariaDB optional
* Safe data saving
* Crash-safe storage
* Clean startup/shutdown
* No console spam
* Compatible with Paper 1.21+

## ✨ Extra Touches

* `/smp` opens the main Liquid Glass dashboard
* Interactive player profiles
* Clickable chat messages
* Custom sounds
* Animated GUI elements
* Server notifications
* First-join tutorial
* Interactive help system
* Confirmation menus for dangerous actions
* Configurable placeholders
* API for other plugins
* Developer-friendly events
* Extensive permissions
* Clean error handling
* No unnecessary dependencies

The final plugin should feel like a **premium modern SMP core**, combining gameplay, moderation, protection, economy and utilities into one polished system rather than feeling like dozens of unrelated plugins glued together.
Kodari AI
KodariSep 21 at 4:54 pm 4
LiquidSMPCore
An all-in-one SMP core plugin for Paper 1.21+ featuring an iOS-inspired Liquid Glass GUI system with dark, light, and auto themes plus multiple accent colors. Provides comprehensive teleportation including homes, warps, TPA, RTP, and back commands. Includes land claiming with trust systems and flags, combat tagging with kill tracking, bounties, and achievements. Implements virtual economy with player shops and auction house, custom kits, daily rewards, and crates. Offers full moderation suite with staff mode, vanish, freeze, bans, mutes, warns, and audit logging. Features world management, performance dashboards, and optional integrations with PlaceholderAPI, Vault, LuckPerms, and DiscordSRV. All features configurable via YAML with SQLite storage and async database operations.

I’ll create a compilable Paper 1.21+ SMP core with persistent player data, homes/economy/social/teleport commands, claims, protection, combat/AFK tracking, configurable menus, and admin controls.

Created the Ultimate SMP Core project with:

  • Paper 1.21+ Gradle setup and plugin metadata

  • Persistent YAML player and claim storage

  • Homes, spawn, back, RTP, teleport requests, cooldowns, and movement cancellation

  • Economy with balance, payments, and admin /eco

  • Private messages, replies, ignore system, and AFK tracking

  • Basic land claims with trust/untrust support

  • Claim block protection and explosion protection

  • Combat tagging, kills, deaths, death locations, and playtime

  • Dashboard and settings GUIs

  • Staff commands for heal, feed, fly, and vanish

  • Configurable messages, GUI appearance, limits, cooldowns, and gameplay settings

  • XSeries dependency manifest for cross-version materials

  • Commands and permissions registered in plugin.yml

von tung

can u turn it into a mod

Kodari AI
KodariSep 21 at 5:12 pm 1

Yes. Should I convert it to a Fabric server-side mod or a NeoForge mod?

Also confirm whether it should remain server-only—so vanilla clients can join—or require a client-side mod too.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
15 1,136
src/main/java/com/kodari/ultimatesmp/UltimateSmp.java
package com.kodari.ultimatesmp;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class UltimateSmp extends JavaPlugin {
    private DataManager dataManager;
    private ClaimManager claimManager;
    private TeleportManager teleportManager;
    private MenuListener menuListener;
    private final Map<UUID, UUID> replies = new HashMap<>();

    @Override
    public void onEnable() {
        saveDefaultConfig();
        dataManager = new DataManager(this);
        claimManager = new ClaimManager(this);
        teleportManager = new TeleportManager(this);
        menuListener = new MenuListener(this);
        SmpCommand command = new SmpCommand(this);
        String[] commands = {"smp", "core", "spawn", "sethome", "home", "delhome", "tpa", "tpahere", "tpaccept", "tpdeny", "back", "rtp", "balance", "pay", "eco", "msg", "tell", "whisper", "reply", "r", "ignore", "afk", "craft", "enderchest", "ec"};
        for (String name : commands) {
            PluginCommand pluginCommand = getCommand(name);
            if (pluginCommand != null) {
                pluginCommand.setExecutor(command);
                pluginCommand.setTabCompleter(command);
            }
        }
        Bukkit.getPluginManager().registerEvents(new CoreListener(this), this);
        Bukkit.getPluginManager().registerEvents(menuListener, this);
        Bukkit.getScheduler().runTaskTimer(this, dataManager::tickAfk, 20L * 60L, 20L * 60L);
        getLogger().info("UltimateSMP enabled.");
    }

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

    public String message(String path) {
        String prefix = getConfig().getString("messages.prefix", "");
        String message = getConfig().getString(path, path);
        return ChatColor.translateAlternateColorCodes('&', prefix + message);
    }

    public DataManager getDataManager() { return dataManager; }
    public ClaimManager getClaimManager() { return claimManager; }
    public TeleportManager getTeleportManager() { return teleportManager; }
    public MenuListener getMenuListener() { return menuListener; }
    public void setReply(UUID player, UUID target) { replies.put(player, target); }
    public UUID getReply(UUID player) { return replies.get(player); }
}