This project is an example exercise Spigot plugin, that saves the coordinates of opened trapdoors in a MySQL database. For inserting and deleting from the database, a QueueManager class is used that manages the data in the background to avoid problems if a player should spam a trapdoor.
This plugin utilizes the kotlin-commons Gigadrive library.
- Spigot 1.16.5
- MySQL
- Java 8
- Gradle 6.7
In order to quickly start a MySQL server, run the following Docker command:
docker run -e MYSQL_ROOT_PASSWORD=password -e MYSQL_ROOT_HOST=% -d -p 3306:3306 mysql/mysql-server:5.7