Plugin Development

The Spigot website listing details about Op Ask Ban, a custom Minecraft plugin

The Op Ask Ban Minecraft plugin on Spigot's website

Op Ask Ban and Spawn On Join are Minecraft plugins developed using Java. Like all of my projects, I coded these from scratch using as few libraries and tools as possible. I also developed several Minecraft mods using the Fabric toolchain, which are available on GitHub under the Unlicense.

the raw code for Spawn On Join, a Minecraft plugin

The code for Spawn On Join on GitHub

Spawn On Join is a simple Minecraft Server-side Plugin used to teleport players to the spawnpoint when they join the server. To achieve this, I searched through the Spigot and Minecraft documentation and found an OnPlayerJoined event (pictured above) which can be used to access the player object and fire a teleportation function to the world spawn.

Op Ask Ban

Op Ask Ban follows a similar style of programming as Spawn On Join. Namely, finding the right event and making a check before firing a function. Luckily for me, Spigot has a chat message callback function which Op Ask Ban can intercept. The most powerful part about Op Ask Ban is not the default settings, however. It is the modularity and customizability. Op Ask Ban uses a simple config file to see what messages are not allowed, the duration of player bans, etc. Additionally, players who have admin permissions within the game can edit the config file using Minecraft commands without having access to the server itself. These features make it extremely easy to automate server administration tasks involving the chat. Operators can add any curse words or hate speech live and all players must follow the rules or be banned. Finally, Op Ask Ban also makes use of a server bypass permission, so certain privileged users can bypass the chat filtration.