I recently got hired to re-write a large game in Minecraft, similar to classic Survival Games. It needs to run on a network, allowing for multiple game servers to go on as well as multiple servers to connect from.The servers the players can connect from needed to know the game status, map, mode (there were…Read More
Using DialogFlow Intent Detection to Get Data from a Minecraft network
I spend quite a lot of time on the Spigot developers forums, and one thread caught my attention. Coincidentally, I’m working on the same project the thread author started months ago (under a network). He was looking for some help with getting a service called DialogFlow to integrate with his Minecraft network.DialogFlow is a service…Read More
Maven Plugin for Generating Spigot’s plugin.yml in Spigot plugins
When creating plugins/projects for myself, I usually create libraries that can be re-used for different parts of the plugin. For example, I recently created an annotation powered command API in Kotlin. In addition to that, I’ve also created an input library using the trick I described earlier. It allows me to very easily listen for…Read More
Annotation-based Hierarchical Plugin Command API
When a player sends a chat message from the client to the server beginning with a forward-slash (“/”) the server treats it as a command and is processed accordingly. In vanilla Minecraft, an example might be “/tp ScarabCoder” where the command is “tp” and the first argument (arguments normally start after the command) is the…Read More
Getting WASD Movement Control Input From the Client
Brief Overview of Packets All communication between the player (client) and the server is done via “packets”. A packet is a collection of data, with the first entry defining what sort of packet it is. For example, when an entity is spawned in the world, the server sends a Spawn Entity packet to the client…Read More
How to create cooldowns with Spigot
Before you start (prerequisites) You don’t need to have any extensive Java experience, but it helps to understand how some of the basic features work. The main point of this tutorial is to go over the method and it’s implementation, not how Java features like Singletons work. How we want it to work For these…Read More