shoshi9009

give me a minecraft arena reset plugin. like i can select 2position like /sarenareset set pos1/pos2 e 2set krne ke bad if i do /sarenareset create <name> if i do this than it will create a backup of the speciifc region. Now if i do /sarena reset then it will reset the arena everytime i'll do this

Kodari AI
KodariAug 20 at 4:06 pm 1
ArenaResetPro
A Minecraft plugin that allows server administrators to define and manage arena regions for instant reset functionality. Using commands like /arenareset set pos1 and /arenareset set pos2, admins can select two corners of a region. The /arenareset create command saves a snapshot of the selected area, storing block data, tile entities, and world state. When triggered with /arenareset reset, the plugin restores the arena to its saved state, clearing all modifications, block changes, and player-created structures. This is ideal for PvP arenas, minigame maps, or event zones that need frequent restoration. The plugin supports multiple named arenas, allowing different regions to be managed independently. It uses efficient serialization to store region data and provides a simple, intuitive command interface for quick setup and reset operations.
  1. Scaffold a Paper plugin with Gradle, plugin metadata, and configurable reset limits.

  2. Add per-player corner selection, named arena snapshots, and compressed disk persistence.

  3. Add /sarenareset (alias /sarena) commands for selection, creation, listing, and incremental resets.

The initial scaffold is in place; I’m correcting the task cleanup reference and normalizing the generated package/permission identifiers before finalizing.1. Added a Paper ArenaReset plugin with /sarenareset and /sarena aliases. 2. Added region selection:

  • /sarenareset set pos1

  • /sarenareset set pos2

  1. Added compressed arena backups:

    • /sarenareset create <name>

  2. Added arena resetting:

    • /sarenareset reset <name>

    • /sarenareset reset works when only one arena exists.

  3. Added /sarenareset list, tab completion, permissions, configurable block limits, and incremental resets to avoid server lag.

  4. Arena backups persist under the plugin’s arenas directory and reload automatically after restart.

shoshi9009

working! do it like i can select as must big area as i want cuz currently i can select only 250000 only, and also do a message like when ever i reset a arena broadcast a messafe in chat.

Kodari AI
KodariAug 20 at 4:18 pm 2
  1. Remove the fixed maximum region-size restriction while keeping reset processing safe.

  2. Broadcast a configurable chat message whenever an arena reset completes.

  1. Removed the configurable 250000 block limit. Large selections are now allowed up to the backup format’s safe maximum.

  2. Added a server-wide chat broadcast after every successful reset: Arena <name> has been reset (<blocks> blocks).

  3. Kept reset batching enabled with blocks-per-tick: 5000 to reduce lag during large arena resets.

shoshi9009

do it like i can change all the messages prefixes from the config

Kodari AI
KodariAug 20 at 4:45 pm 1
  1. Move every player-facing message and prefix into config.yml.

  2. Add configurable placeholders and preserve the existing command behavior.

  3. Update command/reset code to read and format those configured messages.

Added full message customization through config.yml.

You can now change:

  • Prefix

  • Permission message

  • Position messages

  • Usage messages

  • Arena creation messages

  • Creation error messages

  • Reset start/completion messages

  • Reset broadcast message

  • Arena list messages

  • No-arena message

Example:

YAML
prefix: "&8[&bMyServer&8] &r"

messages:
  reset-broadcast: "&6[ARENA] &e{name} &ahas been reset! &7Blocks: &f{blocks}"
  reset-started: "&bResetting &f{name}&b..."
  arena-created: "&aBackup &f{name} &ahas been created with &f{blocks} &ablocks."

Available placeholders:

  • {name} — arena name

  • {blocks} — block count

  • {position} — pos1 or pos2

  • {x}, {y}, {z} — selected coordinates

  • {world} — world name

  • {label} — command label

The reset broadcast is also now configurable using:

YAML
messages:
  reset-broadcast: "&aArena &f{name} &ahas been reset (&f{blocks} blocks&a)."
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 599
src/main/java/com/kodari/arenreset/ArenaResetPlugin.java
package com.kodari.arenreset;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class ArenaResetPlugin extends JavaPlugin {
    private ArenaManager arenaManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        arenaManager = new ArenaManager(this);

        ArenaCommand arenaCommand = new ArenaCommand(this, arenaManager);
        PluginCommand command = getCommand("sarenareset");
        if (command != null) {
            command.setExecutor(arenaCommand);
            command.setTabCompleter(arenaCommand);
        }
    }

    @Override
    public void onDisable() {
        if (arenaManager != null) {
            arenaManager.cancelResets();
        }
    }
}