[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:

  • Reading server.properties separately
  • Using NMS

Both of these options are in my opinion way to overpowered for such a simple boolean and I hope this becomes an API thing.


Generated at Tue Apr 22 06:07:34 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.