Ayan Abdullah

create a glitch smp plugin with advancements

Kodari AI
KodariOct 19 at 9:54 am 1
GlitchSMPAdvancements
GlitchSMPAdvancements is a Minecraft plugin that introduces a unique glitch-themed advancement system for SMP servers. Players can unlock special achievements by triggering intentional glitches, such as walking through walls during lag spikes, duplicating items through inventory desyncs, or surviving fall damage from extreme heights during server stutters. The plugin tracks player actions, detects glitch-like behaviors, and rewards them with custom titles, cosmetic effects, and exclusive in-game items. It includes a configurable advancement tree with multiple tiers, custom toast notifications, and leaderboard tracking to encourage competitive glitch-hunting among players. The system integrates seamlessly with Minecraft's native advancement framework while adding server-side detection logic to recognize and validate glitch occurrences, ensuring fair play and preventing exploitation.

I’ll create GlitchSMP with configurable SMP advancements, persistent player progress, and /glitch commands.

Created GlitchSMP with configurable custom advancements for joining, breaking blocks, and defeating mobs. Player progress is saved in players.yml, and milestone unlocks can be broadcast.

Commands: /glitch advancements, /glitch stats, and /glitch reload (admin permission).

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 456
src/main/java/com/kodari/glitchsmp/GlitchSMPPlugin.java
package com.kodari.glitchsmp;

import org.bukkit.plugin.java.JavaPlugin;

public final class GlitchSMPPlugin extends JavaPlugin {
    private AdvancementManager advancementManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        advancementManager = new AdvancementManager(this);

        getServer().getPluginManager().registerEvents(new AdvancementListener(advancementManager), this);
        getCommand("glitch").setExecutor(new GlitchCommand(this, advancementManager));
        getServer().getScheduler().runTaskTimer(this, advancementManager::save, 6000L, 6000L);
    }

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