summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupBridge/src/com/nijikokun/bukkit/Permissions/Permissions.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsGroupBridge/src/com/nijikokun/bukkit/Permissions/Permissions.java')
-rw-r--r--EssentialsGroupBridge/src/com/nijikokun/bukkit/Permissions/Permissions.java122
1 files changed, 67 insertions, 55 deletions
diff --git a/EssentialsGroupBridge/src/com/nijikokun/bukkit/Permissions/Permissions.java b/EssentialsGroupBridge/src/com/nijikokun/bukkit/Permissions/Permissions.java
index 99fd18ce8..7115bb04c 100644
--- a/EssentialsGroupBridge/src/com/nijikokun/bukkit/Permissions/Permissions.java
+++ b/EssentialsGroupBridge/src/com/nijikokun/bukkit/Permissions/Permissions.java
@@ -8,68 +8,80 @@ import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;
-public class Permissions extends JavaPlugin {
- public static final Logger log = Logger.getLogger("Fake Permissions");
- public static String name = "Permissions";
- public static String codename = "Hacked Permissions by AnjoCaido";
- public static String version = "2.0";
- public static PermissionHandler Security = null;
+public class Permissions extends JavaPlugin
+{
+ public static final Logger log = Logger.getLogger("Fake Permissions");
+ public static String name = "Permissions";
+ public static String codename = "Hacked Permissions by AnjoCaido";
+ public static String version = "2.0";
+ public static PermissionHandler Security = null;
- @Override
- public void onDisable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- System.out.println("Fake " + pdfFile.getName() + " version " + pdfFile.getVersion() + " is disabled!");
- }
+ @Override
+ public void onDisable()
+ {
+ PluginDescriptionFile pdfFile = this.getDescription();
+ System.out.println("Fake " + pdfFile.getName() + " version " + pdfFile.getVersion() + " is disabled!");
+ }
- @Override
- public void onEnable() {
- PluginDescriptionFile pdfFile = this.getDescription();
+ @Override
+ public void onEnable()
+ {
+ PluginDescriptionFile pdfFile = this.getDescription();
- if (Security == null) {
- //make sure we have only one instance
- Security = new NijikoPermissionsProxy(null);
- }
+ if (Security == null)
+ {
+ //make sure we have only one instance
+ Security = new NijikoPermissionsProxy(null);
+ }
- Plugin p = (this.getServer() == null) ? null : this.getServer().getPluginManager().getPlugin("GroupManager");
- if (p != null) {
- if (p.isEnabled()) {
- setGM(p);
- } else {
- if (this.getServer() != null) {
- this.getServer().getPluginManager().registerEvents(new OverrideListener(this), this);
- }
- }
- } else {
- System.err.println("OOOPS! Fake " + pdfFile.getName() + " version " + pdfFile.getVersion() + " couldn't find GroupManager!");
- this.getPluginLoader().disablePlugin(this);
- }
+ Plugin p = (this.getServer() == null) ? null : this.getServer().getPluginManager().getPlugin("GroupManager");
+ if (p != null)
+ {
+ if (p.isEnabled())
+ {
+ setGM(p);
+ }
+ else
+ {
+ if (this.getServer() != null)
+ {
+ this.getServer().getPluginManager().registerEvents(new OverrideListener(this), this);
+ }
+ }
+ }
+ else
+ {
+ System.err.println("OOOPS! Fake " + pdfFile.getName() + " version " + pdfFile.getVersion() + " couldn't find GroupManager!");
+ this.getPluginLoader().disablePlugin(this);
+ }
- if (pdfFile != null) {
- System.out.println("Fake " + pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!");
- }
- }
+ if (pdfFile != null)
+ {
+ System.out.println("Fake " + pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!");
+ }
+ }
- public void setGM(final Plugin p) {
- //GroupManager groupManager = (GroupManager) p;
- ((NijikoPermissionsProxy) Security).setGM(p);
- }
+ public void setGM(final Plugin p)
+ {
+ //GroupManager groupManager = (GroupManager) p;
+ ((NijikoPermissionsProxy)Security).setGM(p);
+ }
- public PermissionHandler getHandler() {
- if (Security == null) {
- Security = new NijikoPermissionsProxy(null);
- }
- return Security;
- }
+ public PermissionHandler getHandler()
+ {
+ if (Security == null)
+ {
+ Security = new NijikoPermissionsProxy(null);
+ }
+ return Security;
+ }
- public void setupPermissions() {
- if (Security == null) {
- Security = new NijikoPermissionsProxy(null);
- }
- }
-
-
-
+ public void setupPermissions()
+ {
+ if (Security == null)
+ {
+ Security = new NijikoPermissionsProxy(null);
+ }
+ }
}
-
-