mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-11-14 10:45:23 +01:00
Update to V1.16.4
Update for MC 1.11
This commit is contained in:
parent
122ae41b0d
commit
241527aac6
6
pom.xml
6
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>at.pcgamingfreaks</groupId>
|
||||
<artifactId>MinePacks</artifactId>
|
||||
<version>1.16.3.1</version>
|
||||
<version>1.16.4</version>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:GeorgH93/Bukkit_Minepacks.git</connection>
|
||||
@ -45,13 +45,13 @@
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>LATEST</version>
|
||||
<version>1.11-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>at.pcgamingfreaks</groupId>
|
||||
<artifactId>Bukkit_Bungee_PluginLib</artifactId>
|
||||
<version>LATEST</version>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zaxxer</groupId>
|
||||
|
@ -34,13 +34,6 @@ public Config(JavaPlugin plugin)
|
||||
super(plugin, CONFIG_VERSION, CONFIG_VERSION);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean newConfigCreated()
|
||||
{
|
||||
config.set("Database.UseUUIDs", Bukkit.getServer().getOnlineMode() && isBukkitVersionUUIDCompatible());
|
||||
return !(Bukkit.getServer().getOnlineMode() && isBukkitVersionUUIDCompatible());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doUpdate()
|
||||
{
|
||||
|
@ -65,7 +65,7 @@ public void onEnable()
|
||||
//region Check compatibility with used minecraft version
|
||||
String name = Bukkit.getServer().getClass().getPackage().getName();
|
||||
String[] version = name.substring(name.lastIndexOf('.') + 2).split("_");
|
||||
if((version[0].equals("1") && Integer.valueOf(version[1]) > 10) || Integer.valueOf(version[0]) > 1)
|
||||
if((version[0].equals("1") && Integer.valueOf(version[1]) > 11) || Integer.valueOf(version[0]) > 1)
|
||||
{
|
||||
MinePacks.getInstance().warnOnVersionIncompatibility(version[0] + "." + version[1]);
|
||||
this.setEnabled(false);
|
||||
|
Loading…
Reference in New Issue
Block a user