Reword invalid version message, include releases link

This commit is contained in:
Jikoo 2020-08-22 12:00:08 -04:00
parent 100d0e12cd
commit a1f4649a09

View file

@ -405,8 +405,8 @@ public class OpenInv extends JavaPlugin implements IOpenInv {
@Override
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
if (!this.accessor.isSupported()) {
sender.sendMessage("Your version of CraftBukkit (" + this.accessor.getVersion() + ") is not supported.");
sender.sendMessage("If this version is a recent release, check for an update.");
sender.sendMessage("Your server version (" + this.accessor.getVersion() + ") is not supported.");
sender.sendMessage("Please check https://github.com/lishid/OpenInv/releases for an update.");
return true;
}
return false;