1.1.2-pre1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: AuxProtectBungee
|
||||
main: dev.heliosares.auxprotect.bungee.AuxProtectBungee
|
||||
version: 1.1.1
|
||||
version: 1.1.2-pre1
|
||||
author: Heliosares
|
||||
@@ -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
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user