[SPIGOT-6605] Add method to access value of enforce-whitelist of server.properties Created: 25/Jun/21 Updated: 25/Jun/21 Resolved: 25/Jun/21 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | mammut53 | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | API, spigot |
Version: | 3161-Spigot-f773da8-f81f499 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT) |
Guidelines Read: | Yes |
Description |
Currently most values of the server.properties are accessible except 'enforce-whitelist' which is rather new to the file. It would make sense to implement a method like 'isWhitelistEnforced' to access this value easily and let plugins act accordingly. Other options currently are:
Both of these options are in my opinion way to overpowered for such a simple boolean and I hope this becomes an API thing. |