Accessing the API
Last updated
Last updated
In order to use the API you must download and import it into your project. Follow the steps below to do this before moving forward.
Download:
Go to https://chatsentry.xyz/api-download to download the API jar
Click on File -> Project Structure (Ctrl + Alt + Shift + S on windows)
Go to the Modules tab, then to the Dependencies subtab
Click the + on the bottom left side and choose Library... -> Java (see below image)
Choose your downloaded API jar
Right-click your project and choose Properties -> Java Build Path
Click on Add external jar and add your downloaded API jar
The next step is to go to your plugin.yml and add ChatSentry as a depend or softdepend, depending on if it is optional or not for your plugin to work
softdepend is used if your plugin works without ChatSentry installed on the server
depend is used if your plugin requires ChatSentry to be installed on the server