ServerVersionCheck constructor

ServerVersionCheck({
  1. int? minVersion,
  2. List<Widget>? versionTooLow,
  3. Score? serverVersion,
  4. Widget then(
    1. Score
    )?,
})

Checks the used Minecraft Version and can give feedback on it(e.g. Errors).

constructor
minVersion the aimed version number as int(1.15 = 15)
versionTooLow a List of Widgets that are executed if it detects that the version is lower that minVersion
then a Function that takes in the used Score and reacts respectively returning a Widget(optional)
serverVersion change the scores name(optional)

Implementation

ServerVersionCheck({
  this.minVersion,
  this.versionTooLow,
  this.serverVersion,
  this.then,
});