How it Works

This is a quick summary of how I've implemented this plugin. It details performance and technical topics for those who are curious.

Usage and Ownership Bans

All events provide this plugin block or item information. The event's world is checked to ensure that it's enabled. The block information is passed into HashMaps to quickly decide if the item or block should be banned. Events are turned into asynchronous tasks when possible to offload tasks from the main thread.

World and Player Scanner

When a player or chunk is loaded, a random number is selected and matched to the desired probabilities in the config. If the chunk is to be scanned, an asynchronous task is made to scan it and any block or item banned will be removed.


Comments

Posts Quoted:
Reply
Clear All Quotes