pagz_1

Plugin Name: PagZ Culling Game

Core:

Create a PvP event system with two teams:

  • Sorcerer
  • Non-Sorcerer

Team System:

  • Default: Non-Sorcerer
  • /culling:register <player> → set Sorcerer

Triggers (Auto Start if ANY):

  1. Non-Sorcerer kills Sorcerer
  2. Non-Sorcerer kills Non-Sorcerer
  3. Sorcerer kills 6th Non-Sorcerer

Culling Game State:

  • PvP: ENABLED for all
  • Time: LOCKED to NIGHT
  • Sleep: DISABLED
  • Store triggering player as "Target"

Objective:

  • Kill Target to end event

Announcements:

  • Start:

"The Culling Game has started because of <Player>. Kill the player to end the game."

  • Every 7 min:

Send Target coordinates in chat

  • End:

"The Culling Game has ended."

End Conditions:

  • Target dies
  • /culling:end used

Reset:

  • Restore PvP
  • Restore time cycle
  • Enable sleep
  • Clear data
  • Allow retrigger

Commands (OP only):

  • /culling:start
  • /culling:end
  • /culling:register <player>

Rules:

  • Normal gameplay outside event
  • Full PvP during event

Technical:

  • Track kills per player
  • Detect roles
  • Use PlayerDeathEvent
  • Scheduler for 7-min broadcast
  • Prevent duplicate triggers
  • Boolean state: isCullingActive
Kodari AI
KodariApr 27 at 4:35 am 9,886 (v2)

I’ll create a PvP event system that automatically triggers based on player kills and team roles.

PagZCullingGame
An automated PvP event system featuring team-based combat triggers. Players are assigned to Sorcerer or Non-Sorcerer teams, and the Culling Game automatically activates when specific kill conditions are met. During the event, PvP is enabled globally, time locks to night, and all players hunt a designated target whose coordinates broadcast every 7 minutes. Includes admin commands for manual control and team management.

Now I’ll create the remaining files for the team management, game logic, listeners, and commands.

All files created. The plugin features:

  • Team system with Sorcerer/Non-Sorcerer roles (default: Non-Sorcerer)

  • Auto-trigger on 3 conditions: Non-Sorcerer kills Sorcerer, Non-Sorcerer kills Non-Sorcerer, or Sorcerer reaches 6 kills

  • Game state locks time to night, enables PvP, disables sleep

  • Coordinate broadcast every 7 minutes (configurable)

  • Commands for manual control (/culling:start, end, register)

  • Auto-reset when target dies or admin ends game

pagz_1

Update the existing PagZ Culling Game plugin with the following features:

New Commands:

(OP Only)

  • /culling:unregister <player>

→ Remove player from Sorcerer team

(All Players)

  • /culling:list

→ Show list of all Sorcerers

  • /culling:points

→ Show all players' points sorted by highest to lowest (ranking)

Points System:

  • Each player kill = +3 points
  • On kill, send message:

"You got 3 points"

  • Points must be tracked per player

Sorcerer System:

  • Sorcerer players must have GREEN name color
  • Sorcerer status must be saved and persist after server restart

Event Update:

  • Change Target location broadcast from 7 minutes → 2 minutes

Rewards System:

  • At event end, determine player with highest points
  • Reward chances (independent):

- 32 Diamonds → 42% - 3 Netherite Ingots → 12% - 1 Netherite Block + Upgrade Trim → 1%

  • Player who kills Target:

→ Also receives same reward chances

Requirements:

  • Do NOT break existing mechanics
  • Keep system optimized
  • Maintain clean state handling
  • Ensure no duplicate rewards or triggers
pagz_1

Update the existing PagZ Culling Game plugin with the following features:

New Commands:

(OP Only) /culling:unregister <player> → Remove player from Sorcerer team,

(All Players) /culling → Show command list divided into:

Admin Commands Player Commands, Target Commands, , ,

/culling:list → Show all Sorcerers,

/culling:points → Show all players' points sorted by highest to lowest,

(Target Only) /culling:ritual → Only usable by current Target → Target must kill 10 players to end the Culling Game → Apply Weakness effect until event ends → If 10 kills reached → End Game,

Points System:

Each kill = +3 points, On kill: "You got 3 points", Track points per player,

Sorcerer System:

Sorcerers have GREEN names, Sorcerer status must persist,

Event Updates:

Target coordinates broadcast every 2 minutes,

Rewards:

Highest points player: 32 Diamonds (42%), 3 Netherite Ingots (12%), 1 Netherite Block + Upgrade Trim (1%), ,

Player who kills Target: → Same reward chances,

World Border (Clear Logic):

When Culling Game STARTS:

Immediately shrink/set world border to 20000 x 20000, ,

While Culling Game is ACTIVE:

Border remains fixed at 20000 x 20000, ,

When Culling Game ENDS:

Expand/reset world border to 30000000 x 30000000, ,

Teleport:

On start:

Teleport all players randomly inside the 20000 border, Ensure safe locations (no lava/void/suffocation), Spread players evenly, ,

Ritual Rules:

Only one ritual active, Track Target ritual kills separately, If Target dies → ritual fails, normal end applies,

Requirements:

Do NOT break existing mechanics, Prevent duplicate triggers/rewards, Clean state handling, Safe teleport logic, Optimized performance

pagz_1

Update the existing PagZ Culling Game plugin with the following features:

Gamble System:

  • Command: /culling:gamble
  • Available to all players
  • 50/50 outcome:

- 50% chance → player gains +6 points - 50% chance → player loses 3 points

  • Send result message:

- Win: "You won the gamble! +6 points" - Lose: "You lost the gamble! -3 points"

  • Cooldown: 60 seconds per player

Kill Tax System:

  • When a player dies:

- They lose 1 point

  • If player has 0 points:

- Do NOT go negative (minimum = 0)

Requirements:

  • Do NOT break existing points system
  • Integrate with /culling:points ranking
  • Prevent spam (cooldown enforced)
  • Ensure accurate point updates
Kodari AI
KodariApr 29 at 8:05 am 1,804 (v2)

I’ll add the gamble system with cooldown and the kill tax system to the existing plugin.

I’ll add the gamble system with cooldown and the kill tax system while preserving the existing points system.

[Generation stopped]

pagz_1

Update the existing PagZ Culling Game plugin with the following features:

Gamble System:

  • Command: /culling:gamble
  • Available to all players
  • 50/50 outcome:

- 50% chance → player gains +6 points - 50% chance → player loses 3 points

  • Send result message:

- Win: "You won the gamble! +6 points" - Lose: "You lost the gamble! -3 points"

  • Limit:

- Each player can use gamble MAX 3 times per Culling Game - When a NEW Culling Game starts: → Reset all players' gamble usage back to 0

  • Cooldown: 60 seconds per player

Kill Tax System:

  • When a player dies:

- They lose 1 point

  • If player has 0 points:

- Do NOT go negative (minimum = 0)

Requirements:

  • Do NOT break existing systems
  • Integrate with /culling:points ranking
  • Track gamble usage per player per game
  • Reset usage ONLY when a new game starts
  • Prevent spam (cooldown + limit)
  • Ensure accurate point updates
Kodari AI
KodariApr 29 at 1:12 pm 22,142 (v2)

I’ll add the gamble system with cooldown and usage limits, plus the kill tax system to the existing plugin.

I’ll add the gamble system with cooldown/usage tracking and the kill tax system.

All features have been added successfully:

Gamble System:

  • Command /culling:gamble available to all players

  • 50/50 chance for +6 points (win) or -3 points (lose)

  • Limited to 3 uses per Culling Game

  • 60 second cooldown between gambles

  • Usage counter resets when a new Culling Game starts (in GameManager.startGame())

  • Win/lose messages display results

Kill Tax System:

  • When any player dies, they lose 1 point

  • Points cannot go below 0 (enforced by Math.max(0, ...) in addPoints())

  • Applies even if there’s no killer

Integration:

  • Gamble results integrate seamlessly with /culling:points leaderboard

  • All existing mechanics preserved (team triggers, rewards, ritual mode)

  • Clean state handling with automatic gamble reset per game

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 1,053
src/main/java/com/pagz/cullinggame/CullingGame.java
package com.pagz.cullinggame;

import com.pagz.cullinggame.command.CullingCommand;
import com.pagz.cullinggame.listener.DeathListener;
import com.pagz.cullinggame.listener.JoinListener;
import com.pagz.cullinggame.listener.SleepListener;
import com.pagz.cullinggame.manager.GameManager;
import com.pagz.cullinggame.manager.TeamManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CullingGame extends JavaPlugin {
    private TeamManager teamManager;
    private GameManager gameManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.teamManager = new TeamManager(this);
        this.gameManager = new GameManager(this);
        
        Bukkit.getPluginManager().registerEvents(new DeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new SleepListener(this), this);
        Bukkit.getPluginManager().registerEvents(new JoinListener(this), this);
        
        getCommand("culling").setExecutor(new CullingCommand(this));
        
        getLogger().info("PagZ Culling Game has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (gameManager.isActive()) {
            gameManager.endGame();
        }
        getLogger().info("PagZ Culling Game has been disabled!");
    }
}