You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need a better way to check the version the server is running.
Although we use at WMA use Spigot so the old way of doing the 4 digit code returned via getServer().getVersion() works, this falls apart for Paper and presumably any other software that outputs something different
Need a better solution that will handle the output of getServer().getBukkitVersion(), as these seem more consistent, or research a better out right solution.
The current method falls down for 1.21 as it doesn't have a c version (a.b.c)
I really wanna avoid doing checks for each version i.e does version = 1.20.6-R0.1-SNAPSHOT, because this requires an update to come out for a new version to keep the updater happy
Need a better way to check the version the server is running.
Although we use at WMA use Spigot so the old way of doing the 4 digit code returned via
getServer().getVersion()
works, this falls apart for Paper and presumably any other software that outputs something differentNeed a better solution that will handle the output of
getServer().getBukkitVersion()
, as these seem more consistent, or research a better out right solution.The current method falls down for 1.21 as it doesn't have a c version (a.b.c)
Examples of the output from
First two are Spigot (obviously, last one is Paper)
The text was updated successfully, but these errors were encountered: