-
Notifications
You must be signed in to change notification settings - Fork 0
Developer API
DynamicKingYT edited this page Feb 10, 2026
·
5 revisions
Proxcord provides a robust API for developers to hook into the proximity system.
(Coming soon to JitPack)
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!
}Proxcord Β© 2026 DynamicKingYT. All rights reserved.
Not affiliated with Mojang or Discord.
π Report Bug β’ π¬ Discord Support β’ β Rate on Modrinth