alexnon3
📎 1 file 1,602 chars
📄
pasted-code-1787438046600.txt
txt 1 lines
▶
Admin Rigging / Testing Add an admin-only hidden testing feature: /sino rig  This toggles a temporary forced-win mode for that player. Also support: /sino rig  on/sino rig  off The player wins their next applicable game, then rig mode automatically disables. For multiplayer games, only the rigged player should be forced to win where technically possible. Other players should remain normal. Only users with: casino.admin.rig can use this. Log rigging actions to the console. Economy & Security Use Vault. Protect against: Double payoutsNegative betsRapid clickingDisconnect exploitsDuplicate gamesRace conditions Persist machines, templates, and configuration so everything survives server restarts. Commands/sino create  [template]/sino remove /sino template create  /sino template edit  /sino template save  /sino template delete  /sino template list/sino rig  [on/off]/sino reload Use tab completion and proper permissions. Main Goal Make the casino feel like an actual physical Minecraft casino, not a collection of inventory menus. Players should walk up to tables, interact with them, watch physical wheels/reels/cards animate, hear sounds, see particles, and watch other players gamble. The plugin should have beautiful default templates while allowing administrators to create completely custom machines through the template editor. Keep the code modular so new games, templates, and animations can easily be added later. The project must build with Maven and produce a normal Paper plugin JAR.
Kodari AI
KodariAug 22 at 10:45 pm 3
CasinoRigSystem
A Minecraft casino plugin that creates physical gambling machines with animated wheels, reels, and cards. Players interact with tables and machines in the world rather than menus. Features include multiple casino games with beautiful default templates, a template editor for custom machines, Vault economy integration with anti-exploit protections, persistent data storage, and an admin rigging system for testing. Includes tab-completed commands for creating machines, managing templates, and toggling forced wins, all secured with proper permissions and console logging.
  1. Build the Maven/Paper project with Vault and XSeries dependencies.

  2. Add persistent machine/template models and repositories with default templates.

  3. Implement physical roulette and slot machines with animated rounds, payouts, and disconnect-safe refunds.

  4. Add admin commands, rigging controls, template editor GUI, permissions, and event listeners.

  1. Created a Maven-based Paper plugin project with Vault economy integration and XSeries compatibility.

  2. Added persistent casino machines and editable roulette/slot templates.

  3. Implemented physical block machines with interactive GUIs, animated roulette wheels and slot reels, sounds, particles, shared rounds, payouts, and bet refunds.

  4. Added /sino commands for machine management, templates, reloads, tab completion, permissions, and admin rigging.

  5. Added protections for invalid bets, duplicate bets, rapid spins, disconnects, machine removal, shutdowns, and double settlement.

Kodari can make mistakes. Review important code before using.
Files
src
manifest.kod
pom.xml
Code
16 1,252
src/main/java/com/kodari/sino/SinoPlugin.java
package com.kodari.sino;

import com.kodari.sino.command.SinoCommand;
import com.kodari.sino.listener.CasinoListener;
import com.kodari.sino.manager.CasinoManager;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

public final class SinoPlugin extends JavaPlugin {
    private CasinoManager casinoManager;
    private Economy economy;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("templates.yml", false);

        RegisteredServiceProvider<Economy> registration = Bukkit.getServicesManager().getRegistration(Economy.class);
        if (registration == null) {
            getLogger().severe("Vault is installed, but no economy provider was found.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        economy = registration.getProvider();
        casinoManager = new CasinoManager(this, economy);
        casinoManager.load();

        SinoCommand command = new SinoCommand(this, casinoManager);
        getCommand("sino").setExecutor(command);
        getCommand("sino").setTabCompleter(command);
        getServer().getPluginManager().registerEvents(new CasinoListener(casinoManager), this);
    }

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

    public Economy getEconomy() {
        return economy;
    }
}