> For the complete documentation index, see [llms.txt](https://supermax-8.gitbook.io/boostedaudio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://supermax-8.gitbook.io/boostedaudio/api/api-examples.md).

# API Examples

```java
// Get the API
BoostedAudioAPI api = BoostedAudioAPI.getAPI();

// Get User
// A user represent a player audio panel
User usr = BoostedAudioAPI.getAPI().getHostProvider().getUsersOnServer().get(playerId);
```

With a user you can get close it, it will kick the player from the audio panel you can playAudio, get the audios playing, stopAudio get proximity chat peers and others things, \
\
When you import the plugin api I recommend checking the class directly in you IDE the methods are really simple to understand

**If you have any question about the api or if you need special features you can ask me on my discord**
