mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +01:00
Added compatible/supported versions to the disclaimer
This commit is contained in:
parent
d91222d30b
commit
ad5aa4a938
@ -1,6 +1,8 @@
|
|||||||
package world.bentobox.bentobox;
|
package world.bentobox.bentobox;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import org.apache.commons.lang.exception.ExceptionUtils;
|
import org.apache.commons.lang.exception.ExceptionUtils;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
@ -90,7 +92,12 @@ public class BentoBox extends JavaPlugin {
|
|||||||
// Show a warning
|
// Show a warning
|
||||||
logWarning("************ Disclaimer **************");
|
logWarning("************ Disclaimer **************");
|
||||||
logWarning("BentoBox may not be compatible with this server!");
|
logWarning("BentoBox may not be compatible with this server!");
|
||||||
logWarning("BentoBox is tested only on the latest version of Spigot.");
|
logWarning("BentoBox is tested only on the following Spigot versions:");
|
||||||
|
|
||||||
|
List<String> versions = ServerCompatibility.ServerVersion.getVersions(ServerCompatibility.Compatibility.COMPATIBLE, ServerCompatibility.Compatibility.SUPPORTED)
|
||||||
|
.stream().map(ServerCompatibility.ServerVersion::toString).collect(Collectors.toList());
|
||||||
|
|
||||||
|
logWarning(String.join(", ", versions));
|
||||||
logWarning("**************************************");
|
logWarning("**************************************");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user