Skip to content
Browse files

Attempting to fix DNF

  • Loading branch information...
1 parent 709486f commit 1fadf50dc641d41286d3dd1ded27de76f97339b1 @chrisgward chrisgward committed May 16, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 src/main/java/com/titankingdoms/dev/TitanIRC/PermsBridge.java
View
14 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.
Something went wrong with that request. Please try again.