Create a complete standalone Bukkit/Spigot/Paper Minecraft plugin in this new empty project. Goal: show each player's rank as a floating text line ABOVE their vanilla name tag/head (not only in tab or chat). The user specifically needs ranks such as Admin and Gracz, and said “bez reklamy”: do not add any advertising, branding, promotional text, or plugin-name text to the in-game display.

First inspect this project's generated files/template and follow its existing package/build/server-version conventions; do not assume file names or package names. Implement the plugin and resources, but do not attempt to build/compile (the workspace lead will compile it).

Requirements:

  • Use floating in-world text entities/labels that follow the player, not scoreboard/tab-only prefixes. Prefer the target server API's text display entity if available; otherwise use a safe invisible marker armor stand. Label should appear above the player's ordinary nametag, update while they move, and not be interactable or have collision/physics. Do not alter their chat or tab display.
  • Default rank text is configurable and should be &7Gracz; players with permission rankabove.admin should get &cAdmin. Add config for labels, vertical offset, update period, and whether players see their own label. Make rank selection easy to extend/configure for other permissions/ranks, with clear priority behavior. Translate legacy & color codes.
  • Keep labels correct across join, quit, death/respawn, world changes, teleports, and plugin reload/disable; avoid duplicate or orphaned entities. Clean up spawned entities on quit and disable. Exclude the display entities from the plugin's own tracking/selection logic. Respect vanished/invisible players if reasonably supported.
  • Add a simple /rankabove reload command (permission rankabove.reload, OP by default) to reload config and refresh labels. Include plugin.yml command/permissions and a readable default config with comments or clear keys.
  • Avoid hard dependency on Vault or the user's unknown existing rank plugin. Permission-based ranks must work alongside their current tab/chat rank plugin (document that those permissions can be granted by a permissions plugin). No advertising.
  • Include concise installation/configuration usage notes in project resources/README if the template supports it.

Done means all implementation and resource files are in place and the plugin behaves as described; report the files changed and any server-version limitations, without claiming it was built.

Kodari AI
KodariOct 2 at 3:51 pm 1
RankAboveHead
Displays player ranks as floating text labels above their heads using text display entities. Permission-based rank system with configurable labels, colors, offsets, and update intervals. Supports Admin and Gracz ranks with easy extension for additional permissions. Includes reload command, automatic cleanup on quit/disable, and handles respawn, teleport, and world changes. Respects vanish status and avoids advertising or branding in-game.
  • Set the project baseline to Java 17 and Bukkit/Spigot API 1.19.4, where text displays are available.

  • Add a permission-priority rank config and a manager for following, per-viewer visibility, and lifecycle cleanup.

  • Register join/quit/teleport/death/respawn/world handling and /rankabove reload; include setup notes.

Utworzono plugin RankAbove od zera: wyświetla konfigurowalne etykiety nad zwykłymi tabliczkami graczy, bez zmian w chacie ani tabliście.

  • RankLabelManager śledzi pozycję i widoczność etykiet, obsługuje priorytety rang oraz usuwa etykiety przy wyjściu, śmierci i wyłączeniu pluginu.

  • RankLabelListener obsługuje dołączenie, teleportację, zmianę świata, śmierć i odrodzenie.

  • /rankabove reload przeładowuje konfigurację; rankabove.reload ma domyślne uprawnienie dla operatorów.

  • Dodano build.gradle, settings.gradle, plugin.yml, config.yml i README.md. Domyślne rangi to &cAdmin dla rankabove.admin oraz &7Gracz dla pozostałych. Dodatkowe rangi można dopisać w konfiguracji; wyższy priority wygrywa.

Plugin korzysta z encji Text Display i wymaga Bukkit/Spigot/Paper 1.19.4 lub nowszego. Nie uruchamiałem buildu ani kompilacji.

Update the existing RankAboveHead Bukkit plugin in this project. Read the current sources/config before editing. User wants the rank beside the player's vanilla nickname on the same name-tag line, not a floating TextDisplay above the head. They also reports that they are an admin but the label shows Gracz, and asks how to format it as &4[ADMIN].

Implement the requested change, not just explain it:

  1. Replace the floating TextDisplay name labels with Bukkit scoreboard-team name-tag prefixes so rank text renders inline immediately before the vanilla player name. Configure prefix with a trailing space if needed. This is the native Bukkit approach for inline name-tag text. Use unique team names owned by this plugin; update ranks dynamically, on joins/world events/reload; remove old orphaned TextDisplay labels and clean up only plugin-owned teams on disable/quit as appropriate. Do not alter chat formatting.
  2. Explain/document the important API limitation: scoreboard team prefixes can also affect tab names and conflict with another plugin that manages scoreboard teams; Bukkit has no separate vanilla name-tag-only prefix API. Preserve other players' unrelated scoreboard data as carefully as possible, and avoid deleting/modifying teams that are not owned by this plugin. If encountering a player's existing team membership prevents the prefix, document that limitation clearly; do not silently destroy another plugin's team. Ensure target name tags remain functional. Keep API compatible with the project's existing 1.19.4 baseline.
  3. Keep permission-based ranks. Make rankabove.admin default to op in plugin.yml, so server operators get Admin automatically; non-OP LuckPerms admins still need this specific permission. Keep/revise config comments explaining that the plugin cannot infer arbitrary group names from other plugins.
  4. Set the example Admin text in config to &4[ADMIN] and retain &7Gracz as default for everyone else, color translate legacy & codes, keep rank priorities and /rankabove reload.
  5. Update README with exact LuckPerms commands for granting Admin to a group/user, changing plugins/RankAbove/config.yml ranks.admin.text: '&4[ADMIN]', and /rankabove reload; mention operator default and the scoreboard/tab compatibility limitation in plain Polish/English as suitable for current README.
  6. Cleanly handle reload, quit, plugin disable and stale plugin-owned resources; avoid leaving prefixes or entities behind. Do not build/compile; workspace lead compiles after your work.

Done means code/config/docs implement inline prefix, permission default and example formatting, and report changed files plus limitations. Do not claim compilation.

Kodari AI
KodariOct 2 at 4:02 pm 1
  1. Zamienię etykiety nad głową na prefiksy scoreboard teamów i zachowam wyłącznie zasoby należące do pluginu.

  2. Poprawię domyślne uprawnienie Admin oraz konfigurację tekstu &4[ADMIN].

  3. Uaktualnię README o komendy LuckPerms i ograniczenia scoreboardu/tablisty.

Zmieniono RankAbove na prefiks inline przed nickiem vanilla, wykorzystując scoreboard teamy zamiast nowych TextDisplayów. Przy starcie, ładowaniu świata i wyłączaniu pluginu usuwane są również stare TextDisplay etykiety oznaczone przez poprzednią wersję.

Zmienione pliki:

  • src/main/java/com/kodari/rankabove/RankLabelManager.java — synchronizuje prefiksy i rangi na scoreboardach, obsługuje zmianę rangi oraz cykl życia gracza. Nie modyfikuje istniejących, cudzych teamów.

  • src/main/resources/config.yml — Admin ma tekst &4[ADMIN], domyślny prefix to &7Gracz; odstęp przed nickiem jest dodawany automatycznie.

  • src/main/resources/plugin.yml — rankabove.admin domyślnie przysługuje operatorom.

  • README.md — opis konfiguracji, komendy LuckPerms i ograniczenia kompatybilności.

Ograniczenie Bukkit: prefix scoreboard teamu może wpływać także na tablistę. Jeśli inny plugin już umieścił gracza w swoim teamie, RankAbove pozostawia go bez zmian i nie może dodać własnego prefixu dla tego gracza na danym scoreboardzie. Chat nie jest modyfikowany. Wymaganie pozostaje Bukkit/Spigot/Paper 1.19.4+. Kompilacji nie uruchamiałem.

Łuki

a do tego możesz zrobić tak żeby jakąś osobną rangę wyżej niż default zrobić a pod adminem żeby nie miała permisji admina chciałbym zrobić jakąs inną czy da się to zmienić w configu tego co zrobiłeś

Kodari AI
KodariOct 2 at 5:05 pm 1

Tak — konfiguracja obsługuje dodatkowe rangi. Dodaj w plugins/RankAbove/config.yml, pod ranks:, na przykład rangę VIP między Graczem a Adminem:

YAML
  vip:
    permission: rankabove.vip
    text: '&6[VIP]'
    priority: 50

Admin ma priorytet 100, więc VIP będzie niżej. Ranga VIP korzysta z osobnego uprawnienia rankabove.vip — nie potrzebuje rankabove.admin. Po zapisaniu zmian wykonaj /rankabove reload.

Nadaj uprawnienie grupie LuckPerms:

Plain Text
/lp group vip permission set rankabove.vip true
/lp user Gracz parent add vip

Albo bezpośrednio graczowi:

Plain Text
/lp user Gracz permission set rankabove.vip true

Możesz zmienić vip, tekst i priorytet według własnych potrzeb.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
8 539
src/main/java/com/kodari/rankabove/RankAbovePlugin.java
package com.kodari.rankabove;

import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class RankAbovePlugin extends JavaPlugin implements CommandExecutor {
    private RankLabelManager rankLabelManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        rankLabelManager = new RankLabelManager(this);
        Bukkit.getPluginManager().registerEvents(new RankLabelListener(rankLabelManager), this);

        PluginCommand command = getCommand("rankabove");
        if (command == null) {
            throw new IllegalStateException("The rankabove command is missing from plugin.yml");
        }
        command.setExecutor(this);
    }

    @Override
    public void onDisable() {
        if (rankLabelManager != null) {
            rankLabelManager.shutdown();
        }
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length != 1 || !args[0].equalsIgnoreCase("reload")) {
            sender.sendMessage("§cUsage: /rankabove reload");
            return true;
        }
        if (!sender.hasPermission("rankabove.reload")) {
            sender.sendMessage("§cYou do not have permission to use this command.");
            return true;
        }

        reloadConfig();
        rankLabelManager.reload();
        sender.sendMessage("§aRank labels reloaded.");
        return true;
    }
}