K

ShadowCore - SMP Core Plugin Specification

General

  • Plugin Name: SmpCoreLite
  • Platform: Paper
  • Minecraft Support: All Paper versions from 1.21.x onward (future 1.21 releases should work without recompilation whenever the Paper API remains compatible).
  • Java: 21
  • Fully configurable.
  • PlaceholderAPI support.
  • Vault support (optional).
  • Modular architecture (every feature can be enabled or disabled independently).
  • Permission-based commands.
  • Clean API for future addons.
  • Async tasks wherever possible for performance.

---

Player Features

Spawn

  • /spawn
  • /setspawn
  • Configurable teleport delay
  • Cancel on movement
  • Per-world spawn support

---

RTP

  • /rtp
  • Safe random teleport
  • Configurable radius
  • Per-world radius
  • Blacklisted worlds
  • Blacklisted biomes
  • Cooldown
  • Multiple RTP presets

---

Homes

  • /home
  • /homes
  • /sethome
  • /delhome

Features:

  • Configurable home limits
  • Permission-based limits
  • Home INVENTORY GUI
  • Teleport delay
  • Cancel on movement

---

Back

  • /back

Supports:

  • Death location
  • Previous teleport location
  • Cooldown
  • Permission bypass

---

Teleport Requests

  • /tpa
  • /tpahere
  • /tpaccept
  • /tpdeny
  • /tpcancel

Features:

  • Request timeout
  • Teleport delay
  • Cancel on movement
  • Ignore requests option

---

Utility Commands

  • /hat
  • /feed
  • /heal

Permissions configurable.

---

World Features

  • World spawn support
  • Spawn protection
  • Configurable world border helper
  • Safe teleport handling
  • Per-world feature toggles

---

Protection

Spawn Protection

  • Block breaking
  • Block placing
  • PvP
  • TNT
  • Lava
  • Water
  • Fire spread
  • Explosions
  • Mob griefing

Fully configurable.

---

Combat Tag

Features:

  • BossBar timer
  • ActionBar timer
  • Configurable duration
  • Block commands while tagged
  • Prevent logout exploit
  • Prevent teleport
  • Configurable allowed commands

---

Anti-Grief

Optional protections:

  • Lava bucket restriction
  • Water bucket restriction
  • End Crystal restriction
  • Bed explosion restriction
  • Respawn Anchor restriction

---

Quality of Life

Sitting

  • Sit on stairs
  • Sit on slabs
  • Configurable worlds

---

Double Doors

  • Open paired doors together

---

Double Trapdoors

  • Open paired trapdoors together

---

Fast Leaf Decay

  • Configurable decay speed

---

Auto Replant

  • Automatically replant harvested crops
  • Permission based

---

One Sleep

Features:

  • Only one player is required to sleep.
  • Night instantly skips to day.
  • Rain and thunderstorms can optionally clear.
  • Broadcast configurable message.
  • Per-world toggle.
  • Ignore AFK players if enabled.

---

Chat Pause

Commands:

  • /chat pause
  • /chat unpause

Permissions:

  • shadowcore.chat.pause

Features:

  • Prevent all public chat while paused.
  • Allow admins with bypass permission to chat.
  • Configurable pause/unpause messages.
  • ActionBar notification when chat is paused.

---

Nickname System

Commands:

  • /nickname <player> <nickname>
  • /nickname reset <player>

Features:

  • Updates:

- Nametag - TAB list - Chat - Join/Quit messages

  • RGB and MiniMessage support
  • Permission-based colors
  • Saves after restart
  • PlaceholderAPI support

---

Skin System

Commands:

  • /skin set <premium_username>
  • /skin reset

Features:

  • Fetch skin texture from the specified premium Minecraft account.
  • Apply the skin to the player executing the command.
  • Save the skin permanently.
  • Automatically restore the saved skin after reconnecting or restarting.
  • Perform skin lookup asynchronously.
  • Cache downloaded skin data to reduce API requests.
  • Display success or failure messages.
  • Do not repeatedly prompt or re-fetch unless the player runs the command again.

---

Configuration

Every module can be enabled or disabled:

spawn: true rtp: true homes: true back: true tpa: true combat-tag: true spawn-protection: true double-doors: true double-trapdoors: true auto-replant: true fast-leaf-decay: true one-sleep: true chat-pause: true nickname: true skin-system: true

---

Performance

  • Optimized for large SMP servers.
  • Minimal memory usage.
  • Async database/file operations.
  • No unnecessary repeating tasks.
  • Proper event priority handling.
  • No console errors or warnings.
  • Compatible with PlaceholderAPI and Vault if installed.
  • Built following Paper API best practices.

The plugin should be written to be maintainable, modular, and production-ready, with each feature isolated into its own module so future features can be added without affecting existing functionality.

Kodari AI
KodariJul 27 at 8:23 pm 14
SmpCoreLite
SmpCoreLite is a modular Paper SMP core plugin for Minecraft 1.21 and newer. It provides configurable spawn, safe RTP, homes with an inventory GUI, back locations, teleport requests, utility commands, combat tagging, spawn protection, anti-grief controls, sitting, paired doors and trapdoors, crop replanting, fast leaf decay, one-player sleep, chat pause, nicknames, and persistent skin restoration. Optional PlaceholderAPI and Vault integrations expose clean extension points for future addons while delayed teleports and asynchronous skin lookups keep gameplay responsive.
SmpCoreLite is a modular Paper 1.21+ SMP core plugin for Java 21. It provides configurable spawn and safe RTP teleportation, homes with an inventory GUI, back and teleport requests, utility commands, spawn protection, combat tagging, anti-grief controls, sitting, paired doors and trapdoors, fast leaf decay, auto-replant, one-player sleep, chat pause, nicknames, and persistent skin profiles. Optional PlaceholderAPI and Vault integrations are detected automatically, while each feature can be independently enabled through configuration.

</commentary-vesm kontaktannonser

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
29 2,414
src/main/java/com/kodari/smpcore/SmpCoreLite.java
package com.kodari.smpcore;

import com.kodari.smpcore.core.DataStore;
import com.kodari.smpcore.core.MessageService;
import com.kodari.smpcore.core.Module;
import com.kodari.smpcore.core.ModuleManager;
import com.kodari.smpcore.core.TeleportService;
import com.kodari.smpcore.modules.BackModule;
import com.kodari.smpcore.modules.ChatPauseModule;
import com.kodari.smpcore.modules.CombatTagModule;
import com.kodari.smpcore.modules.HomeModule;
import com.kodari.smpcore.modules.NicknameModule;
import com.kodari.smpcore.modules.QualityOfLifeModule;
import com.kodari.smpcore.modules.RtpModule;
import com.kodari.smpcore.modules.SkinModule;
import com.kodari.smpcore.modules.SpawnModule;
import com.kodari.smpcore.modules.SpawnProtectionModule;
import com.kodari.smpcore.modules.TpaModule;
import com.kodari.smpcore.modules.UtilityModule;
import java.io.File;
import java.util.Arrays;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.PluginCommand;
import org.bukkit.command.TabCompleter;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

public final class SmpCoreLite extends JavaPlugin {
    private FileConfiguration messages;
    private DataStore dataStore;
    private MessageService messageService;
    private TeleportService teleportService;
    private ModuleManager moduleManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("messages.yml", false);
        this.messages = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "messages.yml"));
        this.dataStore = new DataStore(this);
        this.messageService = new MessageService(this);
        this.teleportService = new TeleportService(this);
        Bukkit.getPluginManager().registerEvents(teleportService, this);

        this.moduleManager = new ModuleManager(this);
        Arrays.asList(
                new SpawnModule(this),
                new RtpModule(this),
                new HomeModule(this),
                new BackModule(this),
                new TpaModule(this),
                new UtilityModule(this),
                new SpawnProtectionModule(this),
                new CombatTagModule(this),
                new QualityOfLifeModule(this),
                new ChatPauseModule(this),
                new NicknameModule(this),
                new SkinModule(this)
        ).forEach(moduleManager::register);
        moduleManager.enableAll();
        getLogger().info("SmpCoreLite enabled with " + moduleManager.enabledCount() + " modules.");
    }

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

    public FileConfiguration getMessages() {
        return messages;
    }

    public DataStore data() {
        return dataStore;
    }

    public MessageService messages() {
        return messageService;
    }

    public TeleportService teleports() {
        return teleportService;
    }

    public boolean enabled(String module) {
        return getConfig().getBoolean("modules." + module, true);
    }

    public void registerCommand(String name, CommandExecutor executor) {
        PluginCommand command = getCommand(name);
        if (command != null) {
            command.setExecutor(executor);
            if (executor instanceof TabCompleter completer) {
                command.setTabCompleter(completer);
            }
        } else {
            getLogger().warning("Command " + name + " is missing from plugin.yml.");
        }
    }
}