mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-31 18:17:49 +01:00
Update for MC 1.11
This commit is contained in:
parent
6edc661b06
commit
96215c5a7c
@ -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()
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ public void onEnable()
|
||||
Utils.warnOnJava_1_7(log);
|
||||
instance = this;
|
||||
//region Check compatibility with used minecraft version
|
||||
if(MCVersion.is(MCVersion.UNKNOWN) || MCVersion.isNewerThan(MCVersion.MC_NMS_1_10_R1))
|
||||
if(MCVersion.is(MCVersion.UNKNOWN) || MCVersion.isNewerThan(MCVersion.MC_NMS_1_11_R1))
|
||||
{
|
||||
String name = Bukkit.getServer().getClass().getPackage().getName();
|
||||
String[] version = name.substring(name.lastIndexOf('.') + 2).split("_");
|
||||
|
Loading…
Reference in New Issue
Block a user