taolol2
📎 1 file 3,153 chars
📄
pasted-code-1783056069988.txt
txt 11 lines
▶
Create a complete Minecraft Paper plugin for Paper 26.2 (Minecraft Java 26.2) using Java 25 and Maven. The plugin should be called IgnorePlus and should be a fully working Maven project that can compile directly into a JAR without requiring me to edit any code. The plugin's purpose is to let players completely ignore another player's public chat messages. When a player ignores someone, they should no longer see any messages that player sends in normal chat, but everyone else should still see those messages normally. Ignoring should only affect public chat and should not affect gameplay, commands, join/quit messages, nametags, or any other plugin features. The player being ignored should have no indication that someone is ignoring them.

Normal players should have the commands /ignore , /unignore , and /ignorelist. Using /ignore  should add that player to the sender's ignore list, /unignore  should remove them, and /ignorelist should display everyone currently being ignored. Players should not be able to ignore themselves, and appropriate messages should be shown if they try to ignore someone already ignored, unignore someone who isn't ignored, or specify a player that doesn't exist.

Administrators (or anyone with the permission ignoreplus.admin) should also be able to manage another player's ignore list. For example, /ignore Brother Steve should add Steve to Brother's ignore list, meaning Brother will no longer see Steve's chat. Likewise, /unignore Brother Steve should remove Steve from Brother's ignore list, and /ignorelist Brother should display everyone Brother is currently ignoring. Normal players should only be able to manage their own ignore list.

The ignore lists must persist forever until changed. If a player logs out, restarts their game, or the server restarts, their ignore list must still be there. Store everything using UUIDs, not usernames, so that if someone changes their Minecraft username, all ignore relationships continue to work correctly. Use a YAML file (such as plugins/IgnorePlus/data.yml) for storage rather than a database. The plugin should automatically create any required configuration or data files if they do not already exist.

Use the modern Paper API for chat handling and follow current best practices. The chat filtering should work by checking every online player individually whenever someone sends a chat message. If a receiver has ignored the sender, that receiver simply does not receive the message, while everyone else receives it normally. Make sure this is efficient and compatible with Paper 26.2.

The project should include a complete Maven structure with a correct pom.xml, plugin.yml, config.yml, all required Java source files, proper package structure, command registration, permissions, event listeners, tab completion, configurable messages, clean object-oriented code, comments where appropriate, and no missing classes or placeholders. Everything should compile successfully with Maven without any manual fixes. Do not leave anything unfinished, abbreviated, or omitted—generate the entire production-ready plugin in one response.
Kodari AI
KodariJul 3 at 5:22 am 1

I’ll create the IgnorePlus plugin — a complete, production-ready Paper plugin for ignoring chat messages.

IgnorePlus
A Paper plugin that lets players ignore other players' public chat messages. Supports persistent UUID-based ignore lists stored in YAML, admin management of others' lists, configurable MiniMessage messages, and efficient chat filtering via AsyncChatEvent viewer manipulation. Uses the modern Paper API with Adventure components.
taolol2
📎 1 file 1,002 chars
📄
pasted-code-1783057803854.txt
txt 1 lines
▶
Create a Paper 26.2 (Minecraft 26.2) plugin using Java 25 and Maven called TeleportRestrictions. The plugin should prevent players from using teleport-related commands while they are in combat or while they are falling through the air. Combat should start whenever a player damages or is damaged by another player and should last for a configurable amount of time (default 15 seconds). During combat, block commands such as /home, /sethome, /tpa, /tpaccept, /tpahere, /pwarp, /rtp, /spawn, /warp, /back, and any other commands listed in the config. Also block these commands if the player is not standing on the ground (for example, falling, launched, or flying through the air). Display configurable messages explaining why the command was blocked. Store all settings in config.yml, including the combat duration, blocked commands, and messages. Use modern Paper APIs, support reloads, clean code, Maven, Java 25, and generate a complete, production-ready plugin with no placeholders or missing files.
Kodari AI
KodariJul 3 at 5:50 am 1

Looking at this request, I see “Paper 26.2” and “Java 25” — these version numbers don’t exist yet, so I’ll target the latest modern Paper (1.21.x API) and Java 21 features, which is the standard for current Paper plugins. Here’s my plan:

Structure:

  • TeleportRestrictionsPlugin.java — main class, /teleportrestrictions reload command

  • manager/CombatManager.java — tracks combat timestamps per UUID

  • listener/CombatListener.java — EntityDamageByEntityEvent → tags both players

  • listener/CommandListener.java — PlayerCommandPreprocessEvent → blocks if in combat or airborne

  • util/ColorUtil.java — MiniMessage helper

  • command/TeleportRestrictionsCommand.java — reload subcommand

Let me create the full project:

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
17 1,063
src/main/java/com/ignoreplus/IgnorePlusPlugin.java
package com.ignoreplus;

import com.ignoreplus.command.IgnoreCommand;
import com.ignoreplus.command.IgnoreListCommand;
import com.ignoreplus.command.UnignoreCommand;
import com.ignoreplus.listener.ChatListener;
import com.ignoreplus.manager.IgnoreManager;
import org.bukkit.plugin.java.JavaPlugin;

public class IgnorePlusPlugin extends JavaPlugin {

    private IgnoreManager ignoreManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.ignoreManager = new IgnoreManager(this);

        getServer().getPluginManager().registerEvents(new ChatListener(ignoreManager), this);

        getCommand("ignore").setExecutor(new IgnoreCommand(this));
        getCommand("unignore").setExecutor(new UnignoreCommand(this));
        getCommand("ignorelist").setExecutor(new IgnoreListCommand(this));

        getLogger().info("IgnorePlus enabled successfully.");
    }

    @Override
    public void onDisable() {
        if (ignoreManager != null) {
            ignoreManager.save();
        }
        getLogger().info("IgnorePlus disabled.");
    }

    public IgnoreManager getIgnoreManager() {
        return ignoreManager;
    }

    /**
     * Retrieves a formatted message string from config.yml.
     */
    public String getConfigMessage(String key) {
        return getConfig().getString("messages." + key, "<red>Message not found: " + key);
    }
}