/settings menu!
Getting the API Instance
You can access theSentrySettingsAPI by grabbing the main plugin instance.
Reading Player Preferences
If your custom plugin sends chat messages or plays sounds, you should check the player’s SentrySettings preferences first to ensure they haven’t muted them!Method: getSetting
UUID
required
The target player’s unique Minecraft UUID.
String
required
The key identifying the setting (e.g.
actionbar-alerts, private-messages, crystal-pvp-optimizer).boolean
default:"true"
Fallback boolean returned if the player has not yet customized this preference.
boolean
Returns
true if the setting is active for this player, false otherwise.Registering Custom GUI Toggles
You can inject your own custom toggles into the SentrySettings GUI. These toggles will automatically be saved to the database (H2/MySQL) just like native settings! To do this, you implement theCustomSetting interface.
.png?fit=max&auto=format&n=VrRd9ylcA_lbpmt6&q=85&s=4eb75c6784eda09d9cdee2d5224ca0e8)