mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-01-01 05:48:06 +01:00
fix privs thinking it's simplyperms.
This commit is contained in:
parent
43cdabaeeb
commit
ce768078b1
@ -44,7 +44,7 @@ public class Permission_Privileges extends Permission {
|
|||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onPluginEnable(PluginEnableEvent event) {
|
public void onPluginEnable(PluginEnableEvent event) {
|
||||||
if (permission.privs == null) {
|
if (permission.privs == null) {
|
||||||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("SimplyPerms");
|
Plugin perms = plugin.getServer().getPluginManager().getPlugin("Privileges");
|
||||||
|
|
||||||
if (perms != null) {
|
if (perms != null) {
|
||||||
if (perms.isEnabled()) {
|
if (perms.isEnabled()) {
|
||||||
@ -58,7 +58,7 @@ public class Permission_Privileges extends Permission {
|
|||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onPluginDisable(PluginDisableEvent event) {
|
public void onPluginDisable(PluginDisableEvent event) {
|
||||||
if (permission.privs != null) {
|
if (permission.privs != null) {
|
||||||
if (event.getPlugin().getDescription().getName().equals("SimplyPerms")) {
|
if (event.getPlugin().getDescription().getName().equals("Privileges")) {
|
||||||
permission.privs = null;
|
permission.privs = null;
|
||||||
log.info(String.format("[%s][Permission] %s un-hooked.", plugin.getDescription().getName(), permission.name));
|
log.info(String.format("[%s][Permission] %s un-hooked.", plugin.getDescription().getName(), permission.name));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user