summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Buonopane <techsoftadvanced@gmail.com>2012-02-23 12:21:26 -0500
committerPaul Buonopane <techsoftadvanced@gmail.com>2012-02-23 12:21:26 -0500
commit9b25a25e91822a2b8003d749d83bc354ef4533da (patch)
treeffa7652b066e0817833d76eb09d8bde226be2667
parenta2fdf66de4db773ec9b898e7985bd6ee75ab8c21 (diff)
downloadEssentials-9b25a25e91822a2b8003d749d83bc354ef4533da.tar
Essentials-9b25a25e91822a2b8003d749d83bc354ef4533da.tar.gz
Essentials-9b25a25e91822a2b8003d749d83bc354ef4533da.tar.lz
Essentials-9b25a25e91822a2b8003d749d83bc354ef4533da.tar.xz
Essentials-9b25a25e91822a2b8003d749d83bc354ef4533da.zip
Methods' applicable members are now static.
Signed-off-by: Paul Buonopane <techsoftadvanced@gmail.com>
-rw-r--r--Essentials/src/com/earth2me/essentials/listener/EssentialsPluginListener.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/listener/EssentialsPluginListener.java b/Essentials/src/com/earth2me/essentials/listener/EssentialsPluginListener.java
index 8add570cd..39941b6f2 100644
--- a/Essentials/src/com/earth2me/essentials/listener/EssentialsPluginListener.java
+++ b/Essentials/src/com/earth2me/essentials/listener/EssentialsPluginListener.java
@@ -5,6 +5,7 @@ import com.earth2me.essentials.api.IReload;
import com.earth2me.essentials.api.ISettings;
import com.earth2me.essentials.perm.GMGroups;
import com.earth2me.essentials.perm.VaultGroups;
+import com.earth2me.essentials.register.payment.Methods;
import com.earth2me.essentials.settings.General;
import com.earth2me.essentials.settings.GroupsHolder;
import java.util.logging.Level;
@@ -32,11 +33,11 @@ public class EssentialsPluginListener implements Listener, IReload
checkGroups();
//ess.getPermissionsHandler().checkPermissions();
ess.getCommandHandler().addPlugin(event.getPlugin());
- if (!ess.getPaymentMethod().hasMethod() && ess.getPaymentMethod().setMethod(ess.getServer().getPluginManager()))
+ if (!Methods.hasMethod() && Methods.setMethod(ess.getServer().getPluginManager()))
{
ess.getLogger().log(Level.INFO, "Payment method found ({0} version: {1})", new Object[]
{
- ess.getPaymentMethod().getMethod().getName(), ess.getPaymentMethod().getMethod().getVersion()
+ Methods.getMethod().getName(), Methods.getMethod().getVersion()
});
}
}
@@ -48,9 +49,9 @@ public class EssentialsPluginListener implements Listener, IReload
//ess.getPermissionsHandler().checkPermissions();
ess.getCommandHandler().removePlugin(event.getPlugin());
// Check to see if the plugin thats being disabled is the one we are using
- if (ess.getPaymentMethod() != null && ess.getPaymentMethod().hasMethod() && ess.getPaymentMethod().checkDisabled(event.getPlugin()))
+ if (Methods.hasMethod() && Methods.checkDisabled(event.getPlugin()))
{
- ess.getPaymentMethod().reset();
+ Methods.reset();
ess.getLogger().log(Level.INFO, "Payment method was disabled. No longer accepting payments.");
}
}