1.1.2-pre1

This commit is contained in:
Internal-Exception
2022-06-16 12:56:47 -04:00
parent ccd2e55fff
commit 3339ffef7b
4 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
name: AuxProtectBungee
main: dev.heliosares.auxprotect.bungee.AuxProtectBungee
version: 1.1.1
version: 1.1.2-pre1
author: Heliosares

View File

@@ -1,5 +1,5 @@
name: AuxProtect
version: 1.1.1
version: 1.1.2-pre1
main: dev.heliosares.auxprotect.AuxProtect
description: A plugin designed to supplement CoreProtect in a few ways.
api-version: 1.13

View File

@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>AuxProtect</groupId>
<artifactId>AuxProtect</artifactId>
<version>1.1.1</version>
<version>1.1.2-pre1</version>
<name>AuxProtect</name>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>

View File

@@ -85,8 +85,9 @@ public class AuxProtect extends JavaPlugin implements IAuxProtect {
data.getData().set("lastloaded", System.currentTimeMillis());
data.save();
debug("Parsing: " + Bukkit.getBukkitVersion());
try {
SERVER_VERSION = Integer.parseInt(Bukkit.getBukkitVersion().split("\\.")[1]);
SERVER_VERSION = Integer.parseInt(Bukkit.getBukkitVersion().split("[\\.-]")[1]);
} catch (Exception e) {
warning("Failed to parse version string: \"" + Bukkit.getBukkitVersion() + "\". Defaulting to 1.16");
SERVER_VERSION = 16;