Paper has had an API to obtain the TPS for a long time now. Accessing TPS values appears to be the only place in which Server-Expansion relies on server internals.
Server-Expansion should use Paper's TPS API where it exists, and fallback to reflection for servers running without the method.
Doing so would mean Server-Expansion is not liable to break in the case of changes to server internals. A recent example is 1.17. Generally, it is much better for plugin software not to rely on internal fields.
Paper has had an API to obtain the TPS for a long time now. Accessing TPS values appears to be the only place in which Server-Expansion relies on server internals.
Server-Expansion should use Paper's TPS API where it exists, and fallback to reflection for servers running without the method.
Doing so would mean Server-Expansion is not liable to break in the case of changes to server internals. A recent example is 1.17. Generally, it is much better for plugin software not to rely on internal fields.