MINI ZERO

ZEROEND – Complete Minecraft Plugin Development Prompt

Plugin Name: ZEROEND Minecraft Version: Paper 1.21.11 Plugin Type: Custom Team, SARD Collection, Transformation & Superpower System.

  1. MAIN CONCEPT – THREE TEAMS

Create a Minecraft plugin named ZEROEND with three teams:

  1. SETAAN (DEVIL)
  2. INSAAN (HUMAN)
  3. BAGWAAN (GOD)

When the plugin starts for the first time, every player must automatically join the INSAAN team.

There are six special artifacts called SARDS. Players must collect all six SARDS to unlock the opportunity to transform into either SETAAN or BAGWAAN.

There must be two types of players within the supernatural teams:

  • Original SETAAN/BAGWAAN.
  • Transformed SETAAN/BAGWAAN.

Their powers will have different effect levels.

  1. SIX SPECIAL SARDS

Create six unique SARDS with different names, appearances, and custom item lore.

Operator abilities

Operators must be able to:

  • Spawn any of the six SARDS at any location.
  • Give specific SARDS to players.
  • Remove SARDS.
  • Locate existing SARDS.
  • Move SARDS to different locations.

Player mechanics

  • Players can physically collect SARDS.
  • Whenever a player collects a SARD, announce their username and exact coordinates (X, Y, Z) to the entire server.
  • Each SARD must have a unique identity.
  • Prevent duplication through inventory exploits, death, relogging, or item manipulation.
  1. SIX SARDS TRANSFORMATION RITUAL

A player must collect all six different SARDS.

Once the player has all six:

  1. The player must throw all six SARDS onto the ground.
  2. The plugin detects the six unique SARDS being sacrificed.
  3. All six SARDS disappear.
  4. A custom transformation GUI opens.
  5. The player gets two choices:

- SETAAN (DEVIL) - BAGWAAN (GOD)

After selecting:

  • If the player selects SETAAN, they permanently join the SETAAN team.
  • If the player selects BAGWAAN, they permanently join the BAGWAAN team.
  • They must immediately receive the transformed-player powers.
  • Their INSAAN status must be removed.

A player cannot choose both teams.

  1. SETAAN (DEVIL) POWERS

There are two categories of SETAAN players.

A. Original SETAAN

Original SETAAN players receive:

During Night:

  • Strength II
  • Speed II
  • Fire Resistance II

During Day:

  • Start burning in direct sunlight.
  • Nighttime powers become inactive.

When nighttime returns, all original SETAAN powers automatically return.

B. Transformed SETAAN

Players who become SETAAN through the six-SARD ritual receive:

During Night:

  • Strength I
  • Speed I
  • Fire Resistance I

During Day:

  • Start burning in direct sunlight.
  • All nighttime powers become inactive.

When nighttime returns, all Level I powers automatically return.

  1. BAGWAAN (GOD) POWERS

There are two categories of BAGWAAN players.

A. Original BAGWAAN

Original BAGWAAN players receive:

During Day:

  • Regeneration II
  • Strength II
  • Speed II

During Night:

  • All special powers become inactive.

When daytime returns, all original BAGWAAN powers automatically return.

B. Transformed BAGWAAN

Players who become BAGWAAN through the six-SARD ritual receive:

During Day:

  • Regeneration I
  • Strength I
  • Speed I

During Night:

  • All special powers become inactive.

When daytime returns, all Level I powers automatically return.

  1. INSAAN (HUMAN) TEAM

Human players receive:

  • No special effects.
  • No special abilities.
  • Normal Minecraft survival gameplay.

All players initially belong to INSAAN.

When they complete the six-SARD ritual and select a supernatural team, they permanently leave INSAAN.

  1. DAY AND NIGHT DETECTION SYSTEM

Implement an automatic day/night detection system.

Requirements:

  • Detect Minecraft world time.
  • Update player effects automatically.
  • Remove inactive powers immediately.
  • Restore the correct powers when the appropriate time returns.
  • Support multiple worlds.
  • Do not give effects to players who are no longer in the relevant team.
  • Avoid duplicating potion effects or interfering unnecessarily with other plugins.

Use configurable day/night time boundaries.

  1. OPERATOR ADMINISTRATION SYSTEM

Create these commands:

Team management

  • "/zeroend setaan <player>" – Make a player an original SETAAN.
  • "/zeroend bagwaan <player>" – Make a player an original BAGWAAN.
  • "/zeroend insaan <player>" – Return a player to INSAAN.
  • "/zeroend info <player>" – Display team, transformation status, and current powers.

SARD management

  • "/zeroend sard spawn <1-6>" – Spawn a specific SARD.
  • "/zeroend sard give <player> <1-6>" – Give a specific SARD.
  • "/zeroend sard remove <1-6>" – Remove a SARD.
  • "/zeroend sard locate" – Locate existing SARDS.

Plugin management

  • "/zeroend" – Display plugin information.
  • "/zeroend reload" – Reload configuration.

All administrative commands must be OP-only or protected by appropriate permissions.

Important: Players manually appointed to SETAAN or BAGWAAN by operators should receive Original Level II powers. Players who transform through the ritual should receive Transformed Level I powers.

  1. CUSTOM GUI AND VISUAL EFFECTS

Create:

  • A custom GUI for selecting SETAAN or BAGWAAN.
  • Unique item models or custom item appearances for six SARDS.
  • Custom item names and lore.
  • Particles and sound effects during the transformation ritual.
  • Broadcast messages when a player becomes SETAAN or BAGWAAN.
  • Messages when players collect SARDS.
  1. DATA STORAGE AND SECURITY
  • Save every player's team.
  • Save whether the player is original or transformed.
  • Save collected SARDS.
  • Save SARD locations.
  • Preserve all data after server restart.
  • Prevent SARD duplication.
  • Prevent transformation exploits.
  • Handle player deaths, disconnects, and reconnects correctly.
  • Ensure players cannot bypass the transformation requirements.
  1. CONFIGURATION

Make the following configurable:

  • SARD names and lore.
  • SARD announcements.
  • Team names.
  • Potion effect levels.
  • Day/night boundaries.
  • Burning behaviour.
  • Transformation messages.
  • GUI appearance.
  • Particle and sound effects.
  1. FINAL DEVELOPMENT REQUIREMENTS

Build a complete, fully functional ZEROEND Minecraft plugin.

Required deliverables:

  1. Complete Java source code.
  2. Plugin.yml.
  3. Config.yml.
  4. All required Java classes.
  5. Event listeners.
  6. Persistent data storage.
  7. Compiled ZEROEND.jar.
  8. Installation instructions.

Target: Paper 1.21.11.

Do not provide pseudocode, incomplete examples, or fake functionality. All commands, abilities, transformations, SARD mechanics, and team systems must work correctly.

Test the complete plugin for bugs, exploits, duplication issues, and server compatibility before delivering the final JAR.

FINAL TEAM POWER SUMMARY

Team| Player Type| Day| Night SETAAN| Original| Burns in sunlight| Strength II, Speed II, Fire Resistance II SETAAN| Transformed| Burns in sunlight| Strength I, Speed I, Fire Resistance I BAGWAAN| Original| Regeneration II, Strength II, Speed II| No powers BAGWAAN| Transformed| Regeneration I, Strength I, Speed I| No powers INSAAN| Everyone initially| No powers| No powers

Core rule: Every player starts as INSAAN. Collecting all six SARDS and completing the sacrifice ritual allows them to permanently transform into either SETAAN or BAGWAAN. Operator-appointed supernatural players are Original, while ritual-transformed players are always Level I.

Kodari AI
KodariNov 3 at 6:34 pm 3
ZEROEND
A comprehensive Minecraft plugin implementing a three-team system (SETAAN, INSAAN, BAGWAAN) with six collectible SARDS artifacts. Players start as INSAAN and can collect all six SARDS to perform a sacrifice ritual, opening a GUI to permanently transform into either SETAAN (Devil) or BAGWAAN (God). Original team members receive Level II powers while transformed players receive Level I powers. SETAAN players gain night-time strength, speed, and fire resistance but burn in sunlight, while BAGWAAN players gain day-time regeneration, strength, and speed. Includes automatic day/night detection, OP-only admin commands for team and SARD management, persistent data storage, configurable settings, custom GUI, particles, sounds, and anti-duplication security measures.
  1. Build persistent teams and time-based powers.

  2. Add SARD management and the transformation ritual.

  3. Add configuration, administration, and installation guidance.

Implemented a partial foundation: persistent teams, original-player powers, and team administration commands.

The plugin is not ready for use: SARDs, the ritual, transformed players, and several configuration and security requirements remain unimplemented. It has not been tested or compiled, and no JAR has been delivered.

MINI ZERO

ZEROEND Plugin – Complete Update & Bug Fix

Update the existing ZEROEND Minecraft plugin for Paper 1.21.11 and Java 21.

Preserve all existing features, team mechanics, SARDS, rituals, abilities, permissions and configurations. Do not remove or break existing functionality.

  1. Fixed Team Names and Colours

Use only these exact team names everywhere:

  • BHAGWAN
  • SHAITAN
  • INSAAN

Correct all spelling mistakes throughout the plugin.

Team label colours:

  • BHAGWAN: White ("§f")
  • SHAITAN: Red ("§c")
  • INSAAN: Default/normal colour

Important: Player names must retain their normal Minecraft name colour. Do not force player names to green, red or white. Only the team label should have a custom colour.

  1. TAB List Display

Show the team label before every player's name:

  • "[BHAGWAN] PlayerName"
  • "[SHAITAN] PlayerName"
  • "[INSAAN] PlayerName"

Apply the correct team label colour while keeping the player's name in its normal colour.

  1. Overhead Nametag Display

Apply the same team labels and colours above players' heads.

Requirements:

  • Team label appears before the player name.
  • Player name retains its normal colour.
  • Update automatically when a player changes teams.
  • Restore the correct display after reconnecting or restarting the server.
  • Original and Transformed members display the same team label.
  • Avoid duplicate prefixes and scoreboard conflicts with other plugins.
  1. Complete "/zeroend" Command Menu

Fix the main command so that typing:

"/zeroend"

automatically displays a complete and organized ZEROEND help menu.

Also support:

"/zeroend help"

All commands must be displayed

General Commands

  • "/zeroend" – Open the command menu.
  • "/zeroend help" – Show all available commands.
  • "/zeroend info <player>" – View a player's team and status.

Admin Commands

  • "/zeroend reload" – Reload plugin configuration.
  • "/zeroend setaan <player>" – Set a player to SHAITAN.
  • "/zeroend bagwaan <player>" – Set a player to BHAGWAN.
  • "/zeroend insaan <player>" – Set a player to INSAAN.

SARD Commands

  • "/zeroend sard spawn <1-6>" – Spawn a specific SARD.
  • "/zeroend sard give <player> <1-6>" – Give a specific SARD.
  • "/zeroend sard remove <1-6>" – Remove a specific SARD.
  • "/zeroend sard locate" – Locate existing SARDS.

Command menu design

  • Attractive ZEROEND-themed chat design.
  • Use dark green, white and red formatting.
  • Display command descriptions and correct usage.
  • Separate general and admin commands.
  • Hide admin-only commands from unauthorized players.
  • Add tab completion for commands, player names and SARD IDs.
  • Show useful error messages for incorrect arguments.
  • Check permissions before executing admin commands.
  • Keep the help menu synchronized with all registered commands.
  1. Technical Requirements
  • Target Paper 1.21.11.
  • Use Java 21.
  • Use supported Paper APIs.
  • Avoid conflicts with other plugins.
  • Preserve existing player data and configuration.
  • Ensure all team changes update TAB and nametags immediately.
  • Prevent duplicate team entries and prefixes.
  • Test compilation and command registration.
  1. Final Deliverables

Provide:

  1. Complete updated "ZEROEND.jar".
  2. Complete Java source code.
  3. Updated configuration files if needed.
  4. Installation instructions.
  5. A list of tested features and any features not verified on a live server.

CRITICAL: Do not create a fresh plugin that replaces the existing one. Update the existing ZEROEND plugin and preserve every previously implemented feature. Do not claim successful testing unless it has actually been performed.

Kodari AI
KodariNov 4 at 4:52 am 2
  1. Correct team labels and update TAB and nametags while preserving existing data.

  2. Update the command menu, permissions, and tab completion.

  3. Check the build configuration and report what could not be tested.

Updated the existing plugin’s team labels, TAB names, basic nametags, help menu, permissions, and tab completion for implemented commands. Existing team data remains readable, and the build configuration targets Paper 1.21.11 and Java 21.

The update is incomplete: SARD commands and rituals were not present in the existing project and remain unimplemented. Nametags are skipped when another scoreboard team already owns the player, to avoid replacing that team.

Compilation, command registration, and live-server behavior were not tested, and no updated JAR is available yet. To build the current source in Kodari, click Compile in the top bar, then Compile in the build window; download the JAR if the build succeeds.

MINI ZERO

ZEROEND – Complete Bug Fix, Team Colour & Command Menu Update

Update the existing ZEROEND plugin for Paper 1.21.11 and Java 21.

Do not recreate the plugin from scratch. Inspect the existing source code, identify actual bugs, fix them, and preserve all existing features.

  1. Correct Team Names and Colours

Use these exact spellings everywhere:

  • BHAGWAN – Golden ("§6")
  • SHAITAN – Red ("§c")
  • INSAAN – Default/normal colour

Player names must retain their normal Minecraft colour. Only the team labels should have custom colours.

  1. TAB List and Overhead Nametags

Display:

  • "[BHAGWAN] PlayerName" – Golden label
  • "[SHAITAN] PlayerName" – Red label
  • "[INSAAN] PlayerName" – Normal label

Requirements:

  • Show team labels in the TAB list.
  • Show team labels above players' heads.
  • Never force player names to green, red, white or golden.
  • Automatically update when a player changes teams.
  • Restore correct labels after reconnecting or restarting.
  • Support Original and Transformed members.
  • Prevent duplicate prefixes and scoreboard conflicts.
  1. Fix "/zeroend" Main Command Menu

Typing "/zeroend" or "/zeroend help" must display the complete command menu.

General Commands

  • "/zeroend"
  • "/zeroend help"
  • "/zeroend info <player>"

Team Admin Commands

  • "/zeroend reload"
  • "/zeroend setaan <player>"
  • "/zeroend bagwaan <player>"
  • "/zeroend insaan <player>"

SARD Commands – MUST BE VISIBLE

  • "/zeroend sard" – Display the complete SARD command menu.
  • "/zeroend sard spawn <1-6>" – Spawn a specific SARD.
  • "/zeroend sard give <player> <1-6>" – Give a specific SARD.
  • "/zeroend sard remove <1-6>" – Remove a specific SARD.
  • "/zeroend sard locate" – Locate all existing SARDS.

Critical SARD command fix:

  • Register "/zeroend sard" as a valid command.
  • Make it display all SARD subcommands.
  • Ensure SARD commands are included in "/zeroend" and "/zeroend help".
  • Fix missing command registration and incorrect argument handling.
  • Add tab completion for SARD IDs from 1 to 6 and online player names.
  • Verify that every SARD command actually executes its intended functionality.
  1. Complete Bug Inspection and Fixes

Inspect the entire existing source code and check:

  • Incorrect team assignment.
  • Team data not saving or loading.
  • TAB prefixes disappearing.
  • Nametags not updating.
  • Incorrect team colours.
  • SARD spawning and duplication bugs.
  • SARD pickup detection.
  • SARD identification and collection.
  • Six-SARD ritual detection.
  • Ritual GUI not opening.
  • Player transformation failures.
  • Incorrect day/night ability activation.
  • Original and Transformed status errors.
  • Missing commands and tab completion.
  • Console errors and plugin startup errors.
  • Compatibility issues with Paper 1.21.11.

Fix the actual root causes instead of hiding errors or adding temporary workarounds.

  1. Technical Requirements
  • Paper 1.21.11.
  • Java 21.
  • Use supported Paper APIs.
  • Preserve existing player data.
  • Avoid conflicts with other plugins.
  • Add proper error handling.
  • Keep configuration reload safe.
  • Do not introduce duplicate listeners or repeating tasks.
  1. Testing and Deliverables

Before delivering:

  1. Compile the complete plugin.
  2. Verify all command registrations.
  3. Test "/zeroend", "/zeroend help" and "/zeroend sard".
  4. Test all SARD subcommands.
  5. Verify team colours in TAB and overhead nametags.
  6. Check existing ZEROEND mechanics for regressions.
  7. Report any tests that could not be performed.

Deliver:

  • Updated complete "ZEROEND.jar".
  • Complete source code.
  • Updated configuration files if required.
  • Installation instructions.

IMPORTANT: Do not claim a bug is fixed unless the relevant code has actually been corrected and tested. Preserve every existing ZEROEND feature.

Kodari AI
KodariNov 4 at 5:05 am 5
  1. Inspect the existing source and fix confirmed team and display issues.

  2. Inspect commands and SARD mechanics, correcting issues supported by the existing code.

  3. Check configuration and registration, and report which tests can and cannot be performed.

The available source contains team and ability code, but no SARD or ritual implementation. I’ll preserve what is present rather than invent mechanics that could replace the original behavior.

Updated the available source to use a gold BHAGWAN label, save canonical team names, move players between ZEROEND scoreboard teams, and apply stronger configured abilities over weaker effects. The help menu and tab completion now list SARD commands, explicitly marked unavailable.

The update remains incomplete. The project contains no SARD, ritual, or transformation implementation to repair. Please provide the original complete source so those mechanics can be preserved and fixed. Nametags also remain limited when another plugin owns the scoreboard team or replaces a viewer’s scoreboard.

Testing: Compilation and live-server tests were not performed; no updated JAR is available yet. To build the current source, click Compile in Kodari’s top bar, then Compile in the window. If it succeeds, download the JAR and place it in your server’s plugins folder, then restart the server. Back up plugins/ZEROEND first.

MINI ZERO

ZEROEND – COMPLETE SARD SYSTEM UPDATE

Server: SWORD SMP Event: ZEROEND Version: Paper 1.21.11 Java: 21

CRITICAL INSTRUCTION

Update the existing original ZEROEND plugin only.

  • Do NOT create another plugin.
  • Do NOT create a separate SARD plugin or addon.
  • Preserve all existing features, commands, team mechanics, abilities, GUI and player data.
  • Integrate the entire SARD system into the original ZEROEND source code.
  • Deliver one updated "ZEROEND.jar".
  1. Six Unique SARDS

Create exactly six unique artifacts: SARD 1, 2, 3, 4, 5 and 6.

Each must have:

  • Unique permanent ID.
  • Unique name and lore.
  • Special item identification using PersistentDataContainer.
  • Protection against fake and renamed ordinary items.
  1. SARD Commands

Integrate these into the existing "/zeroend" command:

/zeroend sard /zeroend sard spawn <1-6> /zeroend sard give <player> <1-6> /zeroend sard give <1-6> /zeroend sard remove <1-6> /zeroend sard locate

Short give command: "/zeroend sard give <1-6>"

This command gives the selected SARD to the command sender.

The other give command allows an administrator to give a SARD directly to another player.

All commands must work, have proper permissions, argument validation and tab completion.

  1. SARD Pickup Announcement

When a player picks up a genuine SARD:

  • Announce the player's username to everyone.
  • Display the SARD number.
  • Display exact X, Y and Z coordinates.
  • Update collection progress.
  • Prevent duplicate announcements for the same pickup.

Example:

"[ZEROEND] PlayerName discovered SARD #3!"

"Location: X: 120 | Y: 64 | Z: -250"

  1. Collection System

Players must collect all six different SARDS.

  • Track each SARD ID separately.
  • Duplicate SARDS do not count.
  • Display progress such as 4/6.
  • Save progress permanently.
  • Restore progress after reconnect and server restart.
  • Prevent duplication and collection exploits.
  1. Sacrifice Ritual

After collecting all six different SARDS:

  1. Player physically throws all six SARD items onto the ground.
  2. Plugin detects all six unique IDs.
  3. Validate that all six are genuine SARDS.
  4. Reject duplicates or missing SARDS.
  5. Consume all six only after successful validation.
  6. Open the ZEROEND transformation GUI.

Detection should support items dropped within a short time window, not only on the exact same tick.

If validation fails, do not consume the items.

  1. Transformation GUI

Create two choices:

BHAGWAN

  • Golden GUI item.
  • Represents divine powers.

SHAITAN

  • Red GUI item.
  • Represents dark powers.

After selection:

  • Permanently remove INSAAN status.
  • Assign the selected faction.
  • Set player status to TRANSFORMED.
  • Apply the correct Level I abilities.
  • Save transformation data.
  • Broadcast the transformation announcement.

Players can choose only one faction and cannot repeat the ritual.

  1. Original and Transformed Powers

Preserve the existing ZEROEND team mechanics:

Original BHAGWAN

  • Day Regeneration II.
  • Day Strength II.
  • Day Speed II.
  • No powers at night.

Transformed BHAGWAN

  • Day Regeneration I.
  • Day Strength I.
  • Day Speed I.
  • No powers at night.

Original SHAITAN

  • Night Strength II.
  • Night Speed II.
  • Night Fire Resistance II.
  • Burns in direct sunlight and loses powers during daytime.

Transformed SHAITAN

  • Night Strength I.
  • Night Speed I.
  • Night Fire Resistance I.
  • Burns in direct sunlight and loses powers during daytime.
  1. Data Persistence and Protection

Save:

  • SARD IDs and locations.
  • Player collection progress.
  • Ritual status.
  • Transformation status.
  • Selected faction.

Prevent fake items, duplication, repeated ritual activation, repeated announcements and disconnect exploits.

  1. Command Menu Fix

Typing "/zeroend" or "/zeroend help" must show all available commands, including every SARD command.

Typing "/zeroend sard" must show the complete SARD command menu.

Add proper permissions, error messages and tab completion.

  1. Final Testing and Delivery

Test the complete gameplay flow:

Admin spawns SARDS → player collects all six → pickup announcements → player sacrifices all six → GUI opens → player chooses BHAGWAN or SHAITAN → transformation and powers activate.

Check compilation, command registration, persistence, duplication protection and Paper 1.21.11 compatibility.

Deliverables:

  • Complete updated "ZEROEND.jar".
  • Updated original Java source code.
  • Configuration files if needed.
  • Installation instructions.
  • Honest testing report.

FINAL WARNING: Do not create a replacement plugin. Modify and repair the existing ZEROEND plugin. Do not claim functionality is fixed unless it has actually been implemented and tested.

Kodari AI
KodariNov 4 at 5:22 am 3
  1. Inspect the existing team, ability, command, and persistence code.

  2. Integrate SARD artifacts, tracking, and commands into ZEROEND.

  3. Add the sacrifice ritual and transformation GUI.

  4. Report build and gameplay tests honestly, with installation steps.

Integrated a SARD system into the existing ZEROEND source, including commands, persistent IDs and collection progress, pickup announcements, a sacrifice flow, and a transformation GUI.

This update is not yet verified or ready for production. Compilation and live-server testing were not performed, so I can’t confirm the gameplay flow or provide a tested JAR. SARD locations are last-recorded locations, not guaranteed live tracking. The current implementation also cannot reliably prevent copied genuine item data or guarantee crash-safe sacrifice consumption.

To build the current source, click Compile in Kodari, then Compile in the window. If it succeeds, download the JAR. Before installing it in the server’s plugins folder, back up the existing plugin data and test on a separate server.

MINI ZERO

ZEROEND – COMPLETE POTION EFFECT & FACTION CONVERSION FIX

Server: SWORD SMP Event: ZEROEND Platform: Paper 1.21.11 Java: 21

CRITICAL INSTRUCTION

Update the existing original ZEROEND plugin only.

Do not create another plugin, addon or separate potion-effect system. Fix the existing code while preserving all existing features, commands, SARD mechanics, GUI, player data and team systems.

  1. POTION LEVEL RULES

There are three different ways a player can become BHAGWAN or SHAITAN. Each method must have its own potion level.

<badge color="success">Level II</badge> A. SARD RITUAL TRANSFORMATION

Players who collect all six SARDS, sacrifice them and select a faction receive Level II effects.

SARD → BHAGWAN

  • Regeneration II during daytime.
  • Strength II during daytime.
  • Speed II during daytime.
  • No supernatural powers at night.

SARD → SHAITAN

  • Strength II at night.
  • Speed II at night.
  • Fire Resistance II at night.
  • Burns in direct sunlight and loses supernatural powers during daytime.

<badge color="info">Level I</badge> B. ADMIN-ASSIGNED FACTION

Players directly assigned through administrator commands receive Level I effects.

Admin → BHAGWAN

  • Regeneration I during daytime.
  • Strength I during daytime.
  • Speed I during daytime.
  • No supernatural powers at night.

Admin → SHAITAN

  • Strength I at night.
  • Speed I at night.
  • Fire Resistance I at night.
  • Burns in direct sunlight and loses supernatural powers during daytime.

<badge color="warning">Level I</badge> C. KILL-CONVERTED FACTION

Players who change factions through the kill conversion system must receive Level I effects, regardless of their previous potion level.

BHAGWAN kills SHAITAN:

  • Defeated SHAITAN becomes BHAGWAN.
  • Receives Regeneration I, Strength I and Speed I during daytime.
  • No powers at night.

SHAITAN kills BHAGWAN:

  • Defeated BHAGWAN becomes SHAITAN.
  • Receives Strength I, Speed I and Fire Resistance I at night.
  • Burns in direct sunlight and loses supernatural powers during daytime.
  1. FACTION KILL CONVERSION SYSTEM

Implement these rules:

  1. When a BHAGWAN player kills a SHAITAN player, convert the defeated player into BHAGWAN.
  2. When a SHAITAN player kills a BHAGWAN player, convert the defeated player into SHAITAN.
  3. The defeated player must receive Level I effects.
  4. Mark the new status as "KILL_CONVERTED".
  5. Save the new faction and status permanently.
  6. Update TAB prefixes and overhead nametags.
  7. Remove old faction effects and apply the new faction effects.
  8. Broadcast a conversion announcement.
  9. Prevent duplicate conversion events.
  10. Do not convert players killed by mobs, environmental damage or unrelated causes.
  1. ORIGINAL AND TRANSFORMED STATUS TRACKING

Maintain a permanent assignment type for each player:

  • "SARD_TRANSFORMED" = Level II.
  • "ADMIN_ASSIGNED" = Level I.
  • "KILL_CONVERTED" = Level I.

Do not determine potion level from faction name alone.

A player's faction and assignment type must be tracked separately.

When an admin changes a player's faction, apply the admin-assigned Level I rules.

When a player completes the SARD ritual, apply Level II rules.

When a player changes faction through a qualifying kill, apply Level I rules.

  1. DAY AND NIGHT DETECTION

Automatically detect day and night in the appropriate world.

BHAGWAN:

  • Activate powers during daytime.
  • Remove supernatural effects at night.

SHAITAN:

  • Activate powers at night.
  • Remove supernatural effects during daytime.
  • Apply sunlight burning according to the existing ZEROEND mechanics.

Requirements:

  • Update effects automatically when time changes.
  • Support player joining and reconnecting.
  • Support respawning.
  • Support world changes.
  • Handle multiple worlds correctly.
  • Do not continuously overwrite valid effects unnecessarily.
  1. POTION EFFECT BUG FIXES

Inspect and fix the actual root causes of missing or incorrect potion effects.

Check:

  • Incorrect amplifier values.
  • Wrong faction assignment.
  • Missing SARD transformation status.
  • Original/Transformed status being overwritten.
  • Potion effects being removed by another repeating task.
  • Conflicting plugin listeners.
  • Effects not being restored after death or reconnect.
  • Day/night detection failures.
  • Duplicate scheduled tasks.
  • Incorrect world handling.

Minecraft amplifier values:

  • Level I = amplifier "0".
  • Level II = amplifier "1".

Make sure the correct effect duration and amplifier are applied.

  1. DATA PERSISTENCE

Permanently save:

  • Player UUID.
  • Current faction.
  • Assignment type.
  • Transformation status.
  • Potion level category.
  • Relevant conversion history.

Data must survive:

  • Server restart.
  • Plugin reload.
  • Player disconnect.
  • Player death.
  • World changes.

Never accidentally downgrade SARD-transformed players to Level I.

Never accidentally upgrade admin-assigned or kill-converted players to Level II.

  1. FINAL TESTING

Test all six cases:

  1. SARD-transformed BHAGWAN receives Level II daytime effects.
  2. SARD-transformed SHAITAN receives Level II nighttime effects.
  3. Admin-assigned BHAGWAN receives Level I daytime effects.
  4. Admin-assigned SHAITAN receives Level I nighttime effects.
  5. BHAGWAN kills SHAITAN → defeated player becomes BHAGWAN with Level I effects.
  6. SHAITAN kills BHAGWAN → defeated player becomes SHAITAN with Level I effects.

Also test reconnecting, dying, respawning, changing worlds and restarting the server.

  1. FINAL DELIVERABLES
  • Updated original "ZEROEND.jar".
  • Updated complete Java source code.
  • Updated configuration files if necessary.
  • List of bugs fixed.
  • Testing report.

FINAL WARNING: Do not create a replacement plugin or a separate potion manager. Modify the existing ZEROEND plugin, preserve all existing features and verify the actual potion levels in-game before claiming the issue is fixed.

Kodari AI
KodariNov 4 at 5:45 am 2
  1. Trace faction assignment, persistence, conversion and the existing effect task.

  2. Correct assignment levels and kill conversion in the existing plugin.

  3. Report build and in-game tests that remain unverified.

Updated the existing ZEROEND source to track assignment type separately from faction, apply Level II for SARD transformations and Level I for admin assignments and qualifying kill conversions, and save conversion history. Added effect refresh handling for respawns and world changes.

Testing remains outstanding. Compilation and the six in-game scenarios were not performed, so I can’t claim the effects or conversions are verified, or deliver a tested JAR. Potion effects have no plugin ownership marker; cleanup may conflict with another plugin applying an identical short-lived effect.

To build the current source, click Compile in Kodari, then Compile in the window. Download the JAR if the build succeeds, and test it on a separate server with a backup of the existing ZEROEND data before installation.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
6 660
src/main/java/com/zeroend/ZeroEnd.java
package com.zeroend;

import com.cryptomorin.xseries.XPotion;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.entity.Projectile;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerChangedWorldEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public final class ZeroEnd extends JavaPlugin implements Listener {
    private File dataFile;
    private YamlConfiguration data;
    private SardSystem sards;
    private final Map<UUID, Map<PotionEffectType, Integer>> appliedEffects = new HashMap<>();

    @Override
    public void onEnable() {
        saveDefaultConfig();
        dataFile = new File(getDataFolder(), "players.yml");
        data = YamlConfiguration.loadConfiguration(dataFile);
        sards = new SardSystem(this, data);
        Bukkit.getPluginManager().registerEvents(this, this);
        Bukkit.getPluginManager().registerEvents(sards, this);
        for (Player player : Bukkit.getOnlinePlayers()) initialize(player);
        Bukkit.getScheduler().runTaskTimer(this, this::updatePlayers, 1L, 20L);
    }

    @EventHandler
    public void onJoin(PlayerJoinEvent event) {
        initialize(event.getPlayer());
        Bukkit.getScheduler().runTask(this, this::updateLabels);
    }

    private void initialize(Player player) {
        String key = player.getUniqueId().toString();
        if (!data.contains(key + ".team")) {
            data.set(key + ".team", "INSAAN");
            data.set(key + ".origin", "NONE");
            saveData();
        }
        if (!data.contains(key + ".assignment")) {
            String team = teamOf(player);
            String origin = data.getString(key + ".origin", "NONE");
            data.set(key + ".assignment", "INSAAN".equals(team) ? "NONE"
                    : ("TRANSFORMED".equalsIgnoreCase(origin) || data.getBoolean(key + ".ritual.completed"))
                    ? "SARD_TRANSFORMED" : "ADMIN_ASSIGNED");
            saveData();
        }
        updateLabels();
    }

    @EventHandler
    public void onDeath(PlayerDeathEvent event) {
        Player victim = event.getEntity();
        clearEffects(victim);
        if (!(victim.getLastDamageCause() instanceof EntityDamageByEntityEvent)) return;
        EntityDamageByEntityEvent damage = (EntityDamageByEntityEvent) victim.getLastDamageCause();
        Object attacker = damage.getDamager();
        if (attacker instanceof Projectile) attacker = ((Projectile) attacker).getShooter();
        if (!(attacker instanceof Player) || !attacker.equals(victim.getKiller())) return;
        Player killer = (Player) attacker;
        String killerTeam = teamOf(killer);
        String victimTeam = teamOf(victim);
        if (!("BHAGWAN".equals(killerTeam) && "SHAITAN".equals(victimTeam))
                && !("SHAITAN".equals(killerTeam) && "BHAGWAN".equals(victimTeam))) return;
        String key = victim.getUniqueId().toString();
        List<String> history = data.getStringList(key + ".conversion-history");
        history.add(System.currentTimeMillis() + ": " + victimTeam + " -> " + killerTeam + " by " + killer.getUniqueId());
        data.set(key + ".conversion-history", history);
        assignFaction(victim, killerTeam, "KILL_CONVERTED");
        Bukkit.broadcastMessage(ChatColor.DARK_GREEN + "[ZEROEND] " + ChatColor.WHITE + victim.getName()
                + " was converted to " + killerTeam + " by " + killer.getName() + "!");
    }

    @EventHandler
    public void onRespawn(PlayerRespawnEvent event) {
        Bukkit.getScheduler().runTask(this, () -> updatePlayer(event.getPlayer()));
    }

    @EventHandler
    public void onWorldChange(PlayerChangedWorldEvent event) {
        clearEffects(event.getPlayer());
        updatePlayer(event.getPlayer());
    }

    @EventHandler
    public void onQuit(PlayerQuitEvent event) {
        clearEffects(event.getPlayer());
    }

    void assignFaction(Player player, String faction, String assignment) {
        clearEffects(player);
        String key = player.getUniqueId().toString();
        data.set(key + ".team", faction);
        data.set(key + ".assignment", assignment);
        data.set(key + ".origin", "SARD_TRANSFORMED".equals(assignment) ? "TRANSFORMED"
                : "NONE".equals(assignment) ? "NONE" : "ORIGINAL");
        saveData();
        updateLabels();
        if (!player.isDead()) updatePlayer(player);
    }

    private String displayTeam(String team) {
        if ("SETAAN".equalsIgnoreCase(team) || "SHAITAN".equalsIgnoreCase(team)) return "SHAITAN";
        if ("BAGWAAN".equalsIgnoreCase(team) || "BHAGWAN".equalsIgnoreCase(team)) return "BHAGWAN";
        return "INSAAN";
    }

    private String teamOf(Player player) {
        return displayTeam(data.getString(player.getUniqueId() + ".team", "INSAAN"));
    }

    private String label(String team) {
        return ("SHAITAN".equals(team) ? ChatColor.RED : "BHAGWAN".equals(team) ? ChatColor.GOLD : ChatColor.RESET)
                + "[" + team + "] " + ChatColor.RESET;
    }

    void updateLabels() {
        for (Player player : Bukkit.getOnlinePlayers()) {
            player.setPlayerListName(label(teamOf(player)) + player.getName());
        }
        for (Player viewer : Bukkit.getOnlinePlayers()) {
            Scoreboard board = viewer.getScoreboard();
            for (Player player : Bukkit.getOnlinePlayers()) {
                String name = player.getName();
                String id = "ze_" + teamOf(player).toLowerCase(Locale.ROOT);
                Team current = board.getEntryTeam(name);
                if (current != null && !current.getName().equals("ze_bhagwan")
                        && !current.getName().equals("ze_shaitan") && !current.getName().equals("ze_insaan")) continue;
                Team team = board.getTeam(id);
                if (team == null) team = board.registerNewTeam(id);
                team.setPrefix(label(teamOf(player)));
                if (current != team) {
                    if (current != null) current.removeEntry(name);
                    team.addEntry(name);
                }
            }
        }
    }

    void saveData() {
        try {
            data.save(dataFile);
        } catch (IOException ex) {
            getLogger().severe("Could not save player data: " + ex.getMessage());
        }
    }

    private void updatePlayers() {
        for (Player player : Bukkit.getOnlinePlayers()) {
            updatePlayer(player);
        }
    }

    private void updatePlayer(Player player) {
            String team = teamOf(player);
            long time = player.getWorld().getTime();
            int dayStart = Math.floorMod(getConfig().getInt("day-start", 0), 24000);
            int nightStart = Math.floorMod(getConfig().getInt("night-start", 13000), 24000);
            boolean day = dayStart < nightStart ? time >= dayStart && time < nightStart
                    : time >= dayStart || time < nightStart;
            int level = "SARD_TRANSFORMED".equals(data.getString(player.getUniqueId() + ".assignment")) ? 2 : 1;
            if ("SHAITAN".equals(team) && day && getConfig().getBoolean("burning.enabled", true)
                    && player.getWorld().getHighestBlockYAt(player.getLocation()) <= player.getLocation().getBlockY()
                    && !player.getWorld().hasStorm()) {
                player.setFireTicks(Math.max(player.getFireTicks(), getConfig().getInt("burning.fire-ticks", 60)));
            }
            if (("SHAITAN".equals(team) && !day) || ("BHAGWAN".equals(team) && day)) {
                apply(player, "STRENGTH", level);
                apply(player, "SPEED", level);
                apply(player, "SHAITAN".equals(team) ? "FIRE_RESISTANCE" : "REGENERATION", level);
            } else {
                clearEffects(player);