RAFIZ IS HERE
๐Ÿ“Ž 1 file 3,683 chars
๐Ÿ“„
pasted-code-1793998448114.txt
txt 69 lines
โ–ถ
Create a professional, high-performance Minecraft Paper / Spigot plugin named BRTP - version 1.0.0, for Minecraft Version 26.3 (Latest).

The plugin combines 2 systems in one lightweight plugin: ClearLag + Random Teleport (RTP).

IMPORTANT RULE:
For ClearLag: NO visuals. No particles, no titles, no bossbar, no sounds. Only simple chat + actionbar.
For RTP: ADD COOL EFFECTS when teleporting. See RTP Effect section below.

1. BRTP - ClearLag System:

Auto clear dropped items, arrows, XP orbs, and hostile mobs every X minutes from config
Simple chat + actionbar countdown warnings at 60s, 30s, 10s, 5s. No titles, no sounds, no particles, no bossbar
/brtp clearlag command to clear instantly
/brtp clearlag toggle to enable/disable auto clear
/brtp clearlag status to see next clear time and total entities cleared
Do NOT clear named mobs, tamed pets, armor stands, item frames, villagers, or mobs with custom names
Clear only in worlds listed in config
Show how many entities were removed in chat
Async entity counting for zero lag, optimized for Version 26.3
2. BRTP - Random Teleport System:

/rtp - teleport player to a safe random location
/rtp  for admins
/rtp reload and /brtp reload
Safe location finder: no lava, no water, no void, no cactus, must be on solid block, not near world border, not inside claimed land if GriefPrevention / Lands / WorldGuard is present
Configurable: min radius, max radius, center X/Z, cooldown, cost with Vault, max attempts, per-world settings
Cooldown bypass permission: brtp.rtp.bypass
Give 5 seconds of fall-damage protection after teleport
RTP queue system so 50 players at once don't lag the server
RTP must be instant and safe
3. BRTP - RTP EFFECT (When Teleported):
When player uses /rtp, play these effects:

BEFORE teleport: At old location, spawn spiral portal particles + ENDERMAN_TELEPORT sound for 1 second
AFTER teleport: At new location, spawn a burst of PORTAL + END_ROD + CLOUD particles in a circle, plus a ring effect on the ground
Play sound: ENTITY_ENDERMAN_TELEPORT + BLOCK_PORTAL_TRAVEL on arrival
Give player SPEED + NIGHT_VISION for 3 seconds after teleport (configurable, can be turned off)
All effects must be toggleable in config.yml under rtp-effects: enabled: true/false
Effects must be lag-free, use async particle spawning, and must NOT affect ClearLag
4. BRTP - RTP Chat Container:
When a player is teleported with /rtp, send ONLY this beautiful chat container / box message AFTER the effect.
The box must be fully editable in messages.yml.
It must show: Player name, World, X Y Z, Biome, and a Tip line.
Use MiniMessage colors. Use a dark box with green border.
Example design to use in messages.yml:

โ•ญโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•ฎ
โ”‚ โœ“ TELEPORTED! ยป You have been RTP'd!
โ”‚
โ”‚ Player: %player%
โ”‚ World: %world%
โ”‚ Location: %x% , %y% , %z%
โ”‚ Biome: %biome%
โ”‚
โ”‚ Tip: Use /rtp again after cooldown.
โ•ฐโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•ฏ
Technical Requirements:

For Minecraft 26.3, Paper API, Java 21+
Use config.yml for all settings, messages.yml for all texts
Use bStats, PlaceholderAPI support for %brtp_cooldown%
Full permission system: brtp.use, brtp.admin, brtp.rtp, brtp.clearlag, brtp.reload
Tab completion for all commands
Folia compatible if possible, or note if not
Clean code structure: commands/, listeners/, managers/, utils/, tasks/
Include plugin.yml with correct commands, permissions, and description
Include README with installation, commands, permissions, and config explanation
NO visual code for ClearLag. Effects ONLY for RTP.
Make the code production-ready, optimized for 26.3, commented, and ready to compile with Maven.
Kodari AI
KodariNov 7 at 8:19 am 4
BRTP
BRTP is a high-performance Minecraft Paper plugin combining ClearLag and Random Teleport (RTP) systems. ClearLag automatically removes dropped items, arrows, XP orbs, and hostile mobs with chat and actionbar countdown warnings, while protecting named entities and tamed pets. RTP teleports players to safe random locations with configurable radius, cooldown, Vault economy integration, and claim protection. Teleportation features stunning visual effects including portal spirals, particle bursts, ring effects, and temporary buffs. Includes async entity counting, RTP queue system, fall damage protection, bStats, PlaceholderAPI support, and full permission/command system with tab completion.
  1. Build the configured ClearLag scheduler and admin commands.

  2. Add queued, safe RTP with claim checks, cooldowns, economy support, and effects.

  3. Add messages, PlaceholderAPI, metrics, permissions, and installation guidance.

Created the ClearLag foundation with commands, countdowns, world filtering, and configurable messages.

Not yet implemented: RTP, claim and economy integrations, PlaceholderAPI, bStats, and the README. This is not yet production-ready or verified to compile against Paper 26.3. Entity scanning runs on the server thread; Folia is not supported.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
8 285
src/main/java/com/kodari/brtp/BRTP.java
package com.kodari.brtp;

import com.kodari.brtp.commands.BRTPCommand;
import com.kodari.brtp.managers.ClearLagManager;
import com.kodari.brtp.utils.Messages;
import org.bukkit.plugin.java.JavaPlugin;

public final class BRTP extends JavaPlugin {
    private Messages messages;
    private ClearLagManager clearLag;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("messages.yml", false);
        messages = new Messages(this);
        clearLag = new ClearLagManager(this, messages);
        BRTPCommand command = new BRTPCommand(this, clearLag, messages);
        getCommand("brtp").setExecutor(command);
        getCommand("brtp").setTabCompleter(command);
        clearLag.start();
    }

    @Override
    public void onDisable() {
        if (clearLag != null) clearLag.stop();
    }

    public void reloadSettings() {
        reloadConfig();
        messages.reload();
        clearLag.start();
    }
}