W

i want u to make me a plugin where i can give access to a player to see ppl on locator bar even if they r wearing pumpkins or shifting and togglable and configurable and using a command like /access user to give him access to see players on locator bar even if they r shifting or using pumpkin

Kodari AI
KodariApr 16 at 10:27 pm 7,985 (v2)

I’ll create a plugin that grants players special access to see other players even when they’re sneaking or hidden.

LocatorAccess
A permission-based player visibility plugin that allows admins to grant players special access to see hidden players. Players with access can detect and see others even when sneaking or using stealth mechanics. Features include admin commands for access management, toggleable visibility, glowing effect highlights, configurable detection range, and persistent access storage. Perfect for staff members or VIP players who need enhanced player tracking capabilities.

I’ll create a plugin where admins can grant players access to see hidden players (sneaking, etc.) with a glowing effect, using /access <player> command.

Plugin created! Features:

  • /access <player> - Grant/revoke locator access

  • /access toggle - Enable/disable your own access

  • /access list - View all players with access

  • Players with access see nearby players glowing (even when sneaking)

  • Configurable detection range, glow color, and check interval

  • Persistent storage of access permissions

W

i mean to give him access to see ppl on the locator bar even if they r sneaking and he can see them from any distnace like on the xp bar he see dots everyone has a specific color tht tracks them down and which direction and how far they are

Kodari AI
KodariApr 16 at 10:29 pm 8,092 (v2)

I completely misunderstood! You want a radar/compass on the XP bar showing colored dots with direction and distance to players. Let me rewrite this properly.

Perfect! Now the plugin shows a radar display on the XP bar (action bar) with:

  • Colored dots for each player (●)

  • Distance in meters

  • Direction (N, NE, E, SE, S, SW, W, NW)

  • Different colors for VIP/Staff (configurable via permissions)

  • Shows closest 5 players within range

  • Works even when players are sneaking

  • Updates every 10 ticks (0.5 seconds)

Example display: ●&cPlayer1 50m N | ●&6VIP 30m E | ●&bStaff 80m SW

Commands:

  • /access <player> - Grant/revoke access (admin)

  • /access toggle - Enable/disable radar

  • /access list - View all players with access

W

i want ppl to be shown from any distance like as far as they are not closest i want all

Kodari AI
KodariApr 17 at 3:36 pm 5,635 (v2)

Perfect! Now the plugin shows ALL players at ANY distance on the radar:

✅ Changes made:

  • Removed distance limit completely

  • Shows ALL online players (not just closest 5)

  • Still sorted by distance (closest first)

  • Still shows direction and distance for each player

  • Color-coded by rank (default/VIP/staff)

The action bar will now display every player like: ●&cPlayer1 25m N | ●&6VIP 150m E | ●&bStaff 800m SW | ●&cPlayer4 2000m W

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 615
src/main/java/com/locatoraccess/plugin/LocatorAccessPlugin.java
package com.locatoraccess.plugin;

import com.locatoraccess.plugin.command.AccessCommand;
import com.locatoraccess.plugin.listener.PlayerVisibilityListener;
import com.locatoraccess.plugin.manager.AccessManager;
import com.locatoraccess.plugin.manager.ConfigManager;
import com.locatoraccess.plugin.manager.RadarManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class LocatorAccessPlugin extends JavaPlugin {

    private ConfigManager configManager;
    private AccessManager accessManager;
    private RadarManager radarManager;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.accessManager = new AccessManager(this);
        this.radarManager = new RadarManager(this);

        getCommand("access").setExecutor(new AccessCommand(this));
        getServer().getPluginManager().registerEvents(new PlayerVisibilityListener(this), this);

        accessManager.loadAccess();

        getLogger().info("LocatorAccess has been enabled!");
    }

    @Override
    public void onDisable() {
        if (radarManager != null) {
            radarManager.stopAllRadars();
        }
        if (accessManager != null) {
            accessManager.saveAccess();
        }
        getLogger().info("LocatorAccess has been disabled!");
    }
}