BLAZE GAMER

Create a fully working Minecraft Paper 26.2 plugin named YourMCMOTD.

IMPORTANT:

* The final output MUST be a compiled, working .jar file named YourMCMOTD.jar. * It must NOT be just a ZIP, source code, or renamed ZIP. * Target Paper Minecraft 26.2. * Use the correct Java version required by Paper 26.2. * The plugin must load normally from the /plugins folder without errors.

PLUGIN PURPOSE:

Create a BannerMOTD-style server-list presentation for my Minecraft server called YOUR MC.

DESIRED SERVER LIST DESIGN:

The Minecraft Multiplayer server entry should visually display:

  1. A pixel-art space/planet scenery.
  2. A large planet in the background made in Minecraft pixel-art style.
  3. Stars/space scenery around the planet.
  4. The server name:

YOUR MC

  1. Under the server name, display:

Gem SMP • Survival

  1. The overall design should look like a Minecraft pixel-art banner rather than a normal plain-text MOTD.

IMPORTANT TECHNICAL REQUIREMENT:

Minecraft's normal server-list MOTD does not support a conventional full background image. Therefore, implement the closest possible BannerMOTD-style effect that is actually compatible with Paper 26.2.

Do NOT rely on old Minecraft features that were removed from modern versions.

PLUGIN FEATURES:

* Automatically show the custom YOUR MC MOTD when the server appears in the multiplayer server list. * Pixel-art planet/space design. * YOUR MC server name clearly visible. * Gem SMP • Survival text below it. * Support Minecraft color codes and modern RGB/hex colors if supported. * Configuration file so I can change the server name and text. * /yourmotd reload command. * Permission: yourmotd.reload * Send a confirmation message after reloading. * Plugin should have a clean plugin.yml. * Include all required dependencies/build configuration. * Avoid unnecessary dependencies where possible.

CONFIGURATION:

Create an easy-to-edit config.yml, for example:

server-name: "YOUR MC" subtitle: "Gem SMP • Survival"

design: type: "planet" enabled: true

messages: reload: "&aYourMCMOTD configuration reloaded!"

Make the configuration actually control the displayed text.

COMPATIBILITY:

* Paper 26.2 * Java 25 if required by Paper 26.2 * The plugin must not depend on client-side mods or resource packs unless absolutely unavoidable. * It must not crash if the configuration is missing or incorrectly formatted. * Include sensible error handling.

DELIVERABLE:

Provide the actual compiled:

YourMCMOTD.jar

Also provide the source project separately if possible, but the JAR is the main requirement.

Before delivering, test that:

  1. The JAR has a valid plugin.yml.
  2. The plugin can be loaded by Paper 26.2.
  3. /yourmotd reload works.
  4. The server-list MOTD is displayed correctly.
  5. No major errors occur during server startup.

Do not claim that a ZIP or source-code file is a working plugin. The final plugin must be a real compiled .jar.

Kodari AI
KodariOct 7 at 9:59 am 1
YourMCMOTD
A BannerMOTD-style server list plugin for Paper 26.2 that displays a pixel-art space scene with a large planet, stars, and the server name "YOUR MC" with subtitle "Gem SMP • Survival". Uses modern RGB color codes and Unicode block characters to create an artistic MOTD banner. Features configurable server name, subtitle, and design settings via config.yml, plus a /yourmotd reload command with permission yourmotd.reload. Implements error handling for missing or malformed configuration and requires no client-side mods or resource packs.
  1. Create a Java 25 Gradle project targeting Paper 26.2.

  2. Render a two-line, colored pixel-art-style space MOTD through the server-list ping event, with configurable text and /yourmotd reload.

  3. Add the plugin descriptor and safe configuration defaults. A vanilla server list can display styled text, not a full background image.

Created the YourMCMOTD project targeting Paper 26.2 with Java 25. The Gradle JAR task is configured to output YourMCMOTD.jar. It displays a two-line, colored pixel-art-style planet MOTD, reads the server name and subtitle from config.yml, and provides /yourmotd reload with the yourmotd.reload permission.

Vanilla Minecraft’s server list supports styled text, not a full background image, so the planet artwork is a text-based approximation. The compiled JAR has not been generated or load-tested here. To create and download it in Kodari:

  1. Click Compile in the desktop top bar, or on phone tap ⋮ → Compile Project.

  2. Click Compile in the window.

  3. When it succeeds, click Download for the build or Download YourMCMOTD.jar in chat.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
5 168
src/main/java/com/yourmc/yourmotd/YourMCMOTDPlugin.java
package com.yourmc.yourmotd;

import java.io.File;
import java.util.Locale;
import java.util.logging.Level;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.server.ServerListPingEvent;
import org.bukkit.plugin.java.JavaPlugin;

public final class YourMCMOTDPlugin extends JavaPlugin implements Listener, CommandExecutor {
    private static final String DEFAULT_SERVER_NAME = "YOUR MC";
    private static final String DEFAULT_SUBTITLE = "Gem SMP • Survival";
    private static final String DEFAULT_TOP_LINE = "&8✦ &5▒▒▒▒▒ &d▓▓▓▓▓▓ &5▒▒▒▒▒ &8✧  &f&l{server-name}";
    private static final String DEFAULT_BOTTOM_LINE = "&9✧ &1░&5▒▓&d●&5▓▒&1░ &8✦  &b{subtitle}";
    private static final String DEFAULT_RELOAD_MESSAGE = "&aYourMCMOTD configuration reloaded!";
    private static final Pattern HEX_COLOR = Pattern.compile("(?i)&#([0-9a-f]{6})");

    @Override
    public void onEnable() {
        saveDefaultConfig();
        getServer().getPluginManager().registerEvents(this, this);

        if (getCommand("yourmotd") == null) {
            getLogger().severe("Command 'yourmotd' is missing from plugin.yml; reload command is unavailable.");
            return;
        }
        getCommand("yourmotd").setExecutor(this);
    }

    @EventHandler
    public void onServerListPing(ServerListPingEvent event) {
        if (!getConfig().getBoolean("design.enabled", true)) {
            return;
        }

        String serverName = configuredText("server-name", DEFAULT_SERVER_NAME);
        String subtitle = configuredText("subtitle", DEFAULT_SUBTITLE);
        String designType = configuredText("design.type", "planet").toLowerCase(Locale.ROOT);

        if (designType.equals("planet")) {
            String topLine = configuredText("design.top-line", DEFAULT_TOP_LINE);
            String bottomLine = configuredText("design.bottom-line", DEFAULT_BOTTOM_LINE);
            event.setMotd(formatLine(topLine, serverName, subtitle) + "\n"
                    + formatLine(bottomLine, serverName, subtitle));
        } else {
            event.setMotd(colorize("&f&l" + serverName) + "\n" + colorize("&7" + subtitle));
        }
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length != 1 || !args[0].equalsIgnoreCase("reload")) {
            sender.sendMessage(colorize("&cUsage: /yourmotd reload"));
            return true;
        }

        if (!sender.hasPermission("yourmotd.reload")) {
            sender.sendMessage(colorize("&cYou do not have permission to do that."));
            return true;
        }

        try {
            if (!new File(getDataFolder(), "config.yml").exists()) {
                saveDefaultConfig();
            }
            reloadConfig();
            sender.sendMessage(colorize(configuredText("messages.reload", DEFAULT_RELOAD_MESSAGE)));
        } catch (RuntimeException exception) {
            getLogger().log(Level.WARNING, "Could not reload config.yml; the previous configuration remains active.", exception);
            sender.sendMessage(colorize("&cYourMCMOTD could not reload its configuration."));
        }
        return true;
    }

    private String configuredText(String path, String fallback) {
        String value = getConfig().getString(path);
        if (value == null || value.isBlank()) {
            return fallback;
        }
        return value.replace('\n', ' ').replace('\r', ' ');
    }

    private String formatLine(String template, String serverName, String subtitle) {
        return colorize(template.replace("{server-name}", serverName).replace("{subtitle}", subtitle));
    }

    private String colorize(String text) {
        Matcher matcher = HEX_COLOR.matcher(text);
        StringBuilder converted = new StringBuilder();
        int lastEnd = 0;
        while (matcher.find()) {
            converted.append(text, lastEnd, matcher.start()).append('§').append('x');
            String hex = matcher.group(1);
            for (int i = 0; i < hex.length(); i++) {
                converted.append('§').append(hex.charAt(i));
            }
            lastEnd = matcher.end();
        }
        converted.append(text, lastEnd, text.length());
        return ChatColor.translateAlternateColorCodes('&', converted.toString());
    }
}