mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-29 12:28:35 +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)
|
||||
public void onPluginEnable(PluginEnableEvent event) {
|
||||
if (permission.privs == null) {
|
||||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("SimplyPerms");
|
||||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("Privileges");
|
||||
|
||||
if (perms != null) {
|
||||
if (perms.isEnabled()) {
|
||||
@ -58,7 +58,7 @@ public class Permission_Privileges extends Permission {
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onPluginDisable(PluginDisableEvent event) {
|
||||
if (permission.privs != null) {
|
||||
if (event.getPlugin().getDescription().getName().equals("SimplyPerms")) {
|
||||
if (event.getPlugin().getDescription().getName().equals("Privileges")) {
|
||||
permission.privs = null;
|
||||
log.info(String.format("[%s][Permission] %s un-hooked.", plugin.getDescription().getName(), permission.name));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user