peckster

Can you make me a Chatgames plugin Frequent chat events including minecraft trivia questions, minecraft item word unscrambles, simple equations.

If you win a chat game you win for example $500 in game

Kodari AI
KodariMar 18 at 7:37 pm 12,796 (v2)

I’ll create a comprehensive chat games plugin with trivia, word unscrambles, and math challenges.

ChatGames
An interactive chat-based minigame plugin featuring automatic game rotation with Minecraft trivia questions, item name unscrambles, and math challenges. Players compete to answer first in chat and win configurable economy rewards. Includes customizable game intervals, difficulty settings, and full message configuration. Integrates with Vault for economy rewards and supports all Minecraft versions through XSeries.

ChatGames plugin created with trivia, unscramble, and math challenges! Players answer in chat to win $500 (configurable). Features automatic game rotation every 5 minutes, hints at halfway point, and full Vault economy integration.

peckster

can you make the reward customizable, make it so you can also win points from the playerpoints plugin

Kodari AI
KodariMar 18 at 7:45 pm 12,665 (v2)

I’ll read the existing files to understand the current reward system, then add PlayerPoints support and make rewards customizable.

Now I’ll add PlayerPoints support and make rewards fully customizable per game type.

Done! I’ve added PlayerPoints support and made rewards fully customizable:

Changes:

  • Added RewardManager that handles both Vault economy and PlayerPoints rewards

  • Rewards are now configurable per game type with three modes: ECONOMY, PLAYERPOINTS, or BOTH

  • Each game can have different money and points amounts

  • The win message automatically adjusts based on what rewards were given

  • Added PlayerPoints API dependency to build.gradle

Config example:

  • Trivia gives $500 (economy only)

  • Unscramble gives $750 + 15 points (both)

  • Math gives 5 points (PlayerPoints only)

The plugin will gracefully handle cases where Vault or PlayerPoints aren’t installed and display appropriate messages.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
16 878
src/main/java/com/chatgames/ChatGames.java
package com.chatgames;

import com.chatgames.game.GameManager;
import com.chatgames.listener.ChatListener;
import com.chatgames.manager.ConfigManager;
import com.chatgames.manager.EconomyManager;
import com.chatgames.manager.RewardManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ChatGames extends JavaPlugin {

    private ConfigManager configManager;
    private EconomyManager economyManager;
    private RewardManager rewardManager;
    private GameManager gameManager;

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        configManager.loadConfigs();

        economyManager = new EconomyManager(this);
        economyManager.setupEconomy();

        rewardManager = new RewardManager(this);

        gameManager = new GameManager(this);
        gameManager.startScheduler();

        getServer().getPluginManager().registerEvents(new ChatListener(this), this);
        getCommand("chatgames").setExecutor(new com.chatgames.command.ChatGamesCommand(this));

        getLogger().info("ChatGames has been enabled!");
    }

    @Override
    public void onDisable() {
        if (gameManager != null) {
            gameManager.stopScheduler();
        }
        getLogger().info("ChatGames has been disabled!");
    }
}