Skip to content

Developer API

DynamicKingYT edited this page Feb 10, 2026 · 5 revisions

πŸ”Œ Developer API

Proxcord provides a robust API for developers to hook into the proximity system.

πŸ“¦ Maven Dependency

(Coming soon to JitPack)

🎧 Events

Listen for when Proxcord successfully moves a player into the voice channel.

import com.proxcord.free.api.events.ProxcordVoiceJoinEvent;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;

public class VoiceListener implements Listener {

    @EventHandler
    public void onVoiceJoin(ProxcordVoiceJoinEvent event) {
        // This code runs when a player is moved!
        String discordId = event.getDiscordId();
        event.getPlayer().sendMessage("You joined the voice chat!");
    }
}
πŸ“‘ Proximity Check
Check if any players are near a target player.

Java
import com.proxcord.free.proximity.ProximityManager;
import java.util.Set;
import java.util.UUID;

// Returns a set of UUIDs of players standing near the target
Set<UUID> nearbyPlayers = ProximityManager.getNearby(player);

if (!nearbyPlayers.isEmpty()) {
    // There are players nearby!
}

Clone this wiki locally