Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
Opps, that was my fault :(
Browse files Browse the repository at this point in the history
  • Loading branch information
t3hk0d3 committed Jun 8, 2012
1 parent 6afee9c commit 11a7fb4
Showing 1 changed file with 1 addition and 27 deletions.
Expand Up @@ -93,16 +93,7 @@ public static void inject(Player player, BukkitPermissions bridge) {
Logger.getLogger("Minecraft").warning("[PermissionsEx] Failed to inject own Permissible");
e.printStackTrace();
}
}

@Override
public PermissionAttachment addAttachment(Plugin plugin) {
System.out.println("Creating attachment for " + plugin.getDescription().getName());

return new PEXAttachment(plugin, player);
}


}

public static void reinjectAll() {
Logger.getLogger("Minecraft").warning("[PermissionsEx] Reinjecting all permissibles");
Expand Down Expand Up @@ -296,21 +287,4 @@ private boolean isAvailable() {
return plugin != null && plugin instanceof PermissionsEx;
}

protected class PEXAttachment extends PermissionAttachment {

protected Plugin plugin;

public PEXAttachment(Plugin plugin, Permissible Permissible) {
super(plugin, Permissible);

this.plugin = plugin;
}

@Override
public void setPermission(String name, boolean value) {
System.out.println("["+plugin.getDescription().getName()+"] Setting permission '"+name+"' = " + value);

super.setPermission(name, value);
}
}
}

0 comments on commit 11a7fb4

Please sign in to comment.