william.6.6.

Make The Chat Games Plugin

Kodari AI
KodariOct 22 at 2:02 pm 1
ChatGamesPlugin
Creates interactive chat-based mini-games for Minecraft servers. Players trigger games via chat commands, competing in word scrambles, math challenges, and trivia questions. Features configurable game durations, difficulty levels, score tracking, leaderboards, and reward systems. Includes anti-spam cooldowns, player statistics, and admin controls for customizing game content. Supports multiple concurrent games with automatic winner announcements and prize distribution. Designed for community engagement and server retention.
  1. Create the Paper plugin entry point, chat-game manager, listener, and command.

  2. Add configurable math, word-scramble, and trivia rounds, plus saved player win counts.

  3. Add the Gradle setup and Bukkit plugin/config files.

Created the ChatGames plugin with automatic and admin-started math, word-scramble, and trivia games. It detects winning chat answers, tracks persistent player wins, and provides /chatgames start, /chatgames stop, and /chatgames stats.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 458
src/main/java/com/kodari/chatgames/ChatGamesPlugin.java
package com.kodari.chatgames;

import org.bukkit.plugin.java.JavaPlugin;

public final class ChatGamesPlugin extends JavaPlugin {
    private ChatGameManager gameManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        gameManager = new ChatGameManager(this);

        ChatGamesCommand command = new ChatGamesCommand(this, gameManager);
        getCommand("chatgames").setExecutor(command);
        getCommand("chatgames").setTabCompleter(command);

        getServer().getPluginManager().registerEvents(new ChatListener(gameManager), this);
        gameManager.startAutomaticGames();
    }

    @Override
    public void onDisable() {
        if (gameManager != null) {
            gameManager.shutdown();
        }
    }
}