Fix default permissions on Paper and update to 2.4.17

This commit is contained in:
GeorgH93 2023-03-25 10:39:40 +01:00
parent 0b42ed3e8f
commit 389f5da5a7
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,7 @@
package at.pcgamingfreaks.Minepacks.Bukkit; package at.pcgamingfreaks.Minepacks.Bukkit;
import at.pcgamingfreaks.Bukkit.Config.PermissionLoader;
import at.pcgamingfreaks.Bukkit.MCVersion; import at.pcgamingfreaks.Bukkit.MCVersion;
import at.pcgamingfreaks.Bukkit.ManagedUpdater; import at.pcgamingfreaks.Bukkit.ManagedUpdater;
import at.pcgamingfreaks.Bukkit.Message.Message; import at.pcgamingfreaks.Bukkit.Message.Message;
@ -34,6 +35,7 @@
import at.pcgamingfreaks.Minepacks.Bukkit.SpecialInfoWorker.NoDatabaseWorker; import at.pcgamingfreaks.Minepacks.Bukkit.SpecialInfoWorker.NoDatabaseWorker;
import at.pcgamingfreaks.Minepacks.MagicValues; import at.pcgamingfreaks.Minepacks.MagicValues;
import at.pcgamingfreaks.Plugin.IPlugin; import at.pcgamingfreaks.Plugin.IPlugin;
import at.pcgamingfreaks.ServerType;
import at.pcgamingfreaks.StringUtils; import at.pcgamingfreaks.StringUtils;
import at.pcgamingfreaks.Updater.UpdateResponseCallback; import at.pcgamingfreaks.Updater.UpdateResponseCallback;
import at.pcgamingfreaks.Version; import at.pcgamingfreaks.Version;
@ -102,6 +104,11 @@ public void onEnable()
if(!checkPCGF_PluginLib()) return; if(!checkPCGF_PluginLib()) return;
if (MCVersion.isNewerOrEqualThan(MCVersion.MC_1_19_3) && ServerType.isPaperCompatible())
{
PermissionLoader.loadPermissionsFromPlugin(this);
}
updater = new ManagedUpdater(this); updater = new ManagedUpdater(this);
instance = this; instance = this;
config = new Config(this); config = new Config(this);

View File

@ -7,7 +7,7 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
<revision>2.4.16</revision> <revision>2.4.17</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>