mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-27 04:55:33 +01:00
forgot some more bPerms2 typos :o
This commit is contained in:
parent
89b3e50beb
commit
c30a2a573f
@ -22,11 +22,11 @@ public class Chat_bPermissions2 extends Chat {
|
||||
private final String name = "bInfo";
|
||||
private Vault plugin = null;
|
||||
private boolean hooked = false;
|
||||
|
||||
|
||||
public Chat_bPermissions2(Vault plugin, Permission perms) {
|
||||
super(perms);
|
||||
this.plugin = plugin;
|
||||
|
||||
|
||||
Bukkit.getServer().getPluginManager().registerEvents(new PermissionServerListener(this), plugin);
|
||||
|
||||
// Load Plugin in case it was loaded before
|
||||
@ -52,7 +52,7 @@ public class Chat_bPermissions2 extends Chat {
|
||||
Plugin chat = plugin.getServer().getPluginManager().getPlugin("bPermissions");
|
||||
if (chat != null) {
|
||||
hooked = true;
|
||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "bPermissions"));
|
||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), "bPermissions2"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -62,11 +62,12 @@ public class Chat_bPermissions2 extends Chat {
|
||||
if (hooked) {
|
||||
if (event.getPlugin().getDescription().getName().equals("bPermissions")) {
|
||||
hooked = false;
|
||||
log.info(String.format("[%s][Chat] %s un-hooked.", plugin.getDescription().getName(), "bPermissions"));
|
||||
log.info(String.format("[%s][Chat] %s un-hooked.", plugin.getDescription().getName(), "bPermissions2"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
|
Loading…
Reference in New Issue
Block a user