palexo7728

mache den befhel /setfarm end nether oder normal danach aknn ich /rfarn dan nether normal end dan wird sie geresetet und wird neu generit wen das paiert wurde automatisch rausgeworfen auf den spawn und eine risige warnung wir an alle gesedet sonst wir jeden tag um 0 uhr neu geerirt dazu gibts rtp für die welten wie regestirt sind dort soll man random auf welr welt hint tpt und mit /ec öfnet die ender turhe

Kodari AI
KodariApr 4 at 5:03 pm 11,996 (v2)

I’ll create a farm world management plugin with world reset functionality, automatic daily regeneration, and RTP system.

FarmWorldManager
A comprehensive farm world management system that allows administrators to designate and manage renewable resource worlds. Features include manual and scheduled world resets with player evacuation, automatic regeneration at midnight, random teleportation to farm worlds, and quick ender chest access. Players receive warnings before resets, and all players are safely teleported to spawn during world regeneration.

All files created successfully! The FarmWorldManager plugin includes:

  • Farm world management: /setfarm <type> to register worlds

  • Manual resets: /resetfarm <type> with countdown warnings

  • Automatic daily resets: Scheduled at midnight (configurable)

  • Random teleport: /rtp [type] with safe location finding

  • Ender chest access: /ec quick command

  • Player safety: All players evacuated to spawn before resets with warnings

Key features:

  • Configurable warning countdowns and messages

  • Sound effects for warnings and teleports

  • RTP cooldown system

  • Safe location detection for teleports

  • Async world deletion for performance

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
14 848
src/main/java/com/example/farmworld/FarmWorldManager.java
package com.example.farmworld;

import com.example.farmworld.command.EnderChestCommand;
import com.example.farmworld.command.ResetFarmCommand;
import com.example.farmworld.command.RTPCommand;
import com.example.farmworld.command.SetFarmCommand;
import com.example.farmworld.manager.ConfigManager;
import com.example.farmworld.manager.RTPManager;
import com.example.farmworld.manager.ResetManager;
import com.example.farmworld.manager.WorldManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class FarmWorldManager extends JavaPlugin {

    private ConfigManager configManager;
    private WorldManager worldManager;
    private ResetManager resetManager;
    private RTPManager rtpManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.worldManager = new WorldManager(this);
        this.resetManager = new ResetManager(this);
        this.rtpManager = new RTPManager(this);
        
        registerCommands();
        
        resetManager.scheduleAutoReset();
        
        getLogger().info("FarmWorldManager has been enabled!");
    }

    @Override
    public void onDisable() {
        if (resetManager != null) {
            resetManager.cancelTasks();
        }
        getLogger().info("FarmWorldManager has been disabled!");
    }

    private void registerCommands() {
        getCommand("setfarm").setExecutor(new SetFarmCommand(this));
        getCommand("resetfarm").setExecutor(new ResetFarmCommand(this));
        getCommand("rtp").setExecutor(new RTPCommand(this));
        getCommand("ec").setExecutor(new EnderChestCommand());
    }

    public void reloadPlugin() {
        reloadConfig();
        configManager.reload();
        worldManager.reloadWorlds();
        resetManager.cancelTasks();
        resetManager.scheduleAutoReset();
    }
}