Looking for the full default code templates? Check out the complete, downloadable versions by running the jar.
1. Main Configuration (config.yml)
The config.yml controls the database connection and the default states for every single toggle in the GUI.
1.1 Database Selection
SentrySettings needs a place to store the personal preferences of every player.config.yml
- Which database should I use? If you run a single survival/factions server, use H2. It’s fast, embedded, and requires zero setup. If you run a network (e.g., multiple servers connected via BungeeCord/Velocity) and want settings (like hidden chats) to sync across them, you must use MYSQL.
1.2 Default Player States
What happens when a new player logs in for the first time? Thedefaults block determines whether a setting is automatically turned true or false before they ever open the menu.
Default Configuration Values
Default Configuration Values
config.yml
If a player manually toggles a setting in-game, it is saved to the database and will override this default value forever.
Disabling Features Globally
Disabling Features Globally
If you do not want your players to have access to specific settings (e.g., you want to force everyone to see global chat), you can remove the item from the GUI entirely using the
toggles block:config.yml
2. Packet Optimizers & PvP Engines
SentrySettings uses ProtocolLib to intercept incoming and outgoing packets. By manipulating these packets, we can artificially lower a player’s ping or optimize the hit-registration of their sword swings and end crystals.2.1 Optimizer Tuning
You can control the intensity of the network manipulation in theoptimizer-tuning section.
config.yml
Available Tuning Intensities
Available Tuning Intensities
String
Disables all packet manipulation. Reverts to vanilla hit-registration, is a “fake” spoofer optimizer.
String
required
The recommended default. Safely optimizes packet order to reduce latency without triggering anti-cheats.
String
Aggressive packet spoofing. Provides the best competitive advantage but requires you to whitelist players or disable your anti-cheat’s combat checks.

.png?fit=max&auto=format&n=VrRd9ylcA_lbpmt6&q=85&s=4eb75c6784eda09d9cdee2d5224ca0e8)