greenbean13_yt

make a plugin with /troll and add 20 different funny trolls with a INVENTORY GUI

Kodari AI
KodariAug 2 at 10:49 pm 1
FunnyTrolls
A playful Minecraft plugin that provides an inventory-based troll menu opened with /troll. Players can select from twenty harmless and funny effects, including launches, fake ban messages, visual lightning, confusion, hotbar shuffles, particle surprises, fake operator messages, levitation, and more. The GUI supports selecting online targets, offers cross-version item, sound, particle, and potion compatibility through XSeries, and includes permission control with the funnytrolls.use permission.
greenbean13_yt

add 20 more trolls and make the fake ban one pull up a ban screen to be more convincing

Kodari AI
KodariAug 2 at 10:59 pm 3
  1. Add 20 additional troll actions to the existing troll registry and GUI.

  2. Replace the fake-ban chat message with a convincing in-game ban screen that automatically closes.

  1. Added 20 new trolls, bringing the total to 40.

  2. Expanded the inventory GUI to display all 40 trolls across four rows.

  3. Upgraded Fake Ban with:

    • Countdown titles and sounds

    • Full-screen “YOU ARE BANNED” title

    • Fake reason and appeal information

    • Delayed “BAN CANCELLED” reveal

    • Automatic GUI closure before the sequence begins

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
14 1,045
src/main/java/com/kodari/funnytrolls/FunnyTrollsPlugin.java
package com.kodari.funnytrolls;

import com.kodari.funnytrolls.command.TrollCommand;
import com.kodari.funnytrolls.gui.GUIListener;
import com.kodari.funnytrolls.gui.GUIManager;
import com.kodari.funnytrolls.troll.TrollManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FunnyTrollsPlugin extends JavaPlugin {

    private TrollManager trollManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        this.trollManager = new TrollManager(this);
        this.guiManager = new GUIManager();

        Bukkit.getPluginManager().registerEvents(new GUIListener(this.guiManager), this);

        TrollCommand trollCommand = new TrollCommand(this);
        getCommand("troll").setExecutor(trollCommand);
        getCommand("troll").setTabCompleter(trollCommand);
    }
}