quickhenri

Develop a comprehensive random teleportation plugin featuring two primary commands: /rtp for random teleportation to configurable distances with slow falling effect and cooldowns, and /rtpqurere for selecting specific dimensions (Overworld, Nether, End) with a menu interface. Ensure that players are teleported to a location 10 blocks away from other players within the same server to encourage PvP, while also implementing permission support for different player ranks. Include visual effects during teleportation and provide extensive configuration options for cooldowns, teleportation distances, and other settings to enhance user experience.

Kodari AI
KodariJun 29 at 7:13 pm 1

I’ll create a comprehensive random teleportation plugin with all requested features.

RandomTeleportPlugin
A fully configurable random teleportation plugin with /rtp and /rtpgui commands. Features configurable teleport distances per rank, per-dimension support (Overworld, Nether, End) via GUI, player-safe-distance checks (10+ blocks from other players for PvP), slow falling effects, particle effects, cooldown system with permission-based bypasses, and extensive configuration for all settings. Includes teleport delay with move-cancellation protection.
quickhenri

Baue ein das die Chuncks vorgeladen werden

Kodari AI
KodariJun 29 at 7:14 pm 1

Chunks werden jetzt vor der Teleportation vorgeladen:

TeleportManager.java — Neue Methode preloadChunks(Location, int radius):

  • Berechnet aus Ziel-Koordinaten die Chunk-X/Z → blockX >> 4

  • Lädt alle Chunks in einem konfigurierbaren Radius synchron (world.loadChunk(chunkX+dx, chunkZ+dz, true))

  • Wird vor den Effekten und der Teleportation ausgeführt

ConfigManager.java — Zwei neue Methoden:

  • isChunkLoadingEnabled() → ob das Feature aktiv ist

  • getChunkLoadRadius() → Radius in Chunks (default: 3 = 7×7 Chunks = 14×14 Sekunden Ladezeit bei 20 Ticks/Chunk)

config.yml — Neuer Abschnitt:

YAML
teleport:
  chunk-loading:
    enabled: true
    radius: 3

Verhalten: Bevor ein Spieler teleportiert wird, lädt das Plugin alle Chunks im Zielbereich (7×7 Chunks default). Dadurch gibt es kein Terrain-Pop-In — Blöcke, Entities und Chunk-Daten sind bereits geladen, bevor der Spieler ankommt. Die Konfiguration erlaubt es, das Deaktivieren (z. B. wenn WorldBorder oder ein anderes Plugin das Chunk-Loading verwaltet).

quickhenri

Mache es für ein servernetzwerk also mit bungeecord usw

Kodari AI
KodariJun 29 at 7:15 pm 1
quickhenri

Verbessere das plugin mache es mit mehr animationen und mache es mit actionbar usw. Mache das man den prefix usw besser anpassen kann

Kodari AI
KodariJun 30 at 1:29 pm 40

Full overhaul incoming. Here’s what I’m building:

  • ActionBar mit animiertem Fortschrittsbalken während Countdown

  • Titles bei Start, Erfolg und Abbruch

  • Doppelhelix-Partikel um den Spieler während Wartezeit

  • Implosion am Ursprung + Burst am Ziel

  • Mehrfach-Sounds (Tick, Start, Ankunft)

  • Komplett konfigurierbarer Prefix + alle Display-Texte in config.yml

  • Verbessertes GUI mit Cooldown-Status, Distanz-Info und Enchant-Glow


Zusammenfassung der Änderungen:

MessageUtil — 4 neue Methoden:

  • sendActionBar() / clearActionBar() via player.spigot().sendMessage(ACTION_BAR, ...)

  • sendTitle() / clearTitle()

  • buildProgressBar() — generischer Fortschrittsbalken mit konfigurierbaren Zeichen & Farben

  • applyPlaceholders() als eigene Hilfsmethode

ConfigManager — ~30 neue Getter:

  • ActionBar-Formate (Countdown, Suche, Erfolg, Cooldown, Abbruch)

  • Fortschrittsbalken-Einstellungen (Länge, Farben, Zeichen)

  • Title-Texte (Countdown, Erfolg, Abbruch) + Fade-Zeiten

  • Animations-Einstellungen (Helix-Radius, Rotationsgeschwindigkeit, Burst/Implosion-Particle+Anzahl)

  • 3 Sounds: Tick, Start, Ankunft

TeleportManager — Vollständig überarbeitete Animations-Engine:

  • Läuft alle 2 Ticks (statt 20) für flüssige Effekte

  • Doppelhelix-Partikel umkreisen den Spieler mit steigender Höhe

  • ActionBar-Fortschrittsbalken aktualisiert sich ~5× pro Sekunde

  • Titles bei Start, jeder Sekunde, Erfolg

  • Tick-Sound jede Sekunde + Start-Sound

  • Implosion am Abgangsort (Partikel fliegen nach innen)

  • Burst am Zielort (Partikel explodieren nach außen)

  • Ankunfts-Sound nach Teleport

DimensionGUI — Aufgewertetes Interface:

  • Enchant-Glow auf verfügbaren Dimensionen

  • Lore zeigt Distanzbereich + Cooldown-Status

  • Gesperrte Dimensionen → Barrier-Item + durchgestrichener Name

  • Info-Item (Kompass) unten mit Spieler-Status

  • Click-Erkennung via verstecktem Lore-Tag (kein fragiler Titel-Vergleich)

config.yml — Komplett neu strukturiert mit allen neuen Optionen vollständig dokumentiert

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
13 1,543
src/main/java/com/rtp/RandomTeleportPlugin.java
package com.rtp;

import com.rtp.commands.RTPCommand;
import com.rtp.commands.RTPGuiCommand;
import com.rtp.config.ConfigManager;
import com.rtp.gui.DimensionGUI;
import com.rtp.listeners.TeleportListener;
import com.rtp.teleport.CooldownManager;
import com.rtp.teleport.SafeLocationFinder;
import com.rtp.teleport.TeleportManager;
import org.bukkit.plugin.java.JavaPlugin;

public class RandomTeleportPlugin extends JavaPlugin {

    private ConfigManager configManager;
    private CooldownManager cooldownManager;
    private SafeLocationFinder safeLocationFinder;
    private TeleportManager teleportManager;
    private DimensionGUI dimensionGUI;

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        cooldownManager = new CooldownManager(this);
        safeLocationFinder = new SafeLocationFinder(this);
        teleportManager = new TeleportManager(this, safeLocationFinder, cooldownManager);
        dimensionGUI = new DimensionGUI(this, teleportManager);

        getCommand("rtp").setExecutor(new RTPCommand(this, teleportManager));
        getCommand("rtpgui").setExecutor(new RTPGuiCommand(this, dimensionGUI));

        getServer().getPluginManager().registerEvents(dimensionGUI, this);
        getServer().getPluginManager().registerEvents(new TeleportListener(this, teleportManager), this);

        getLogger().info("RandomTeleportPlugin v" + getDescription().getVersion() + " enabled!");
    }

    @Override
    public void onDisable() {
        if (teleportManager != null) teleportManager.clearPendingTeleports();
        if (cooldownManager != null) cooldownManager.clearAll();
        getLogger().info("RandomTeleportPlugin disabled!");
    }

    public ConfigManager getConfigManager() { return configManager; }
    public CooldownManager getCooldownManager() { return cooldownManager; }
}