Permalink
Browse files

Attempting to fix DNF

  • Loading branch information...
chrisgward committed May 15, 2012
1 parent 709486f commit 1fadf50dc641d41286d3dd1ded27de76f97339b1
Showing with 8 additions and 6 deletions.
  1. +8 −6 src/main/java/com/titankingdoms/dev/TitanIRC/PermsBridge.java
@@ -50,13 +50,15 @@ public PermsBridge(TitanIRC instance)
@EventHandler
public void onPluginEnable(PluginEnableEvent e)
{
- if(PermissionsPluginName == null || PermissionsPluginName == "Vault")
+ if(e.getPlugin().getName().equalsIgnoreCase("DeathNotifier"))
{
- if(e.getPlugin().getName().equalsIgnoreCase("DeathNotifier"))
- {
- TitanIRC.useDeathNotifier = true;
- instance.getServer().getPluginManager().registerEvents(new DNFListener(), instance);
- }
+ TitanIRC.useDeathNotifier = true;
+ instance.getServer().getPluginManager().registerEvents(new DNFListener(), instance);
+ }
+
+ else if(PermissionsPluginName == null || PermissionsPluginName == "Vault")
+ {
+
if(e.getPlugin().getName().equalsIgnoreCase("bPermissions") && e.getPlugin() instanceof de.bananaco.bpermissions.imp.Permissions)
{

0 comments on commit 1fadf50

Please sign in to comment.