1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 04:21:31 +02:00

Methods' applicable members are now static.

Signed-off-by: Paul Buonopane <techsoftadvanced@gmail.com>
This commit is contained in:
Paul Buonopane
2012-02-23 12:21:26 -05:00
parent a2fdf66de4
commit 9b25a25e91

View File

@@ -5,6 +5,7 @@ import com.earth2me.essentials.api.IReload;
import com.earth2me.essentials.api.ISettings; import com.earth2me.essentials.api.ISettings;
import com.earth2me.essentials.perm.GMGroups; import com.earth2me.essentials.perm.GMGroups;
import com.earth2me.essentials.perm.VaultGroups; import com.earth2me.essentials.perm.VaultGroups;
import com.earth2me.essentials.register.payment.Methods;
import com.earth2me.essentials.settings.General; import com.earth2me.essentials.settings.General;
import com.earth2me.essentials.settings.GroupsHolder; import com.earth2me.essentials.settings.GroupsHolder;
import java.util.logging.Level; import java.util.logging.Level;
@@ -32,11 +33,11 @@ public class EssentialsPluginListener implements Listener, IReload
checkGroups(); checkGroups();
//ess.getPermissionsHandler().checkPermissions(); //ess.getPermissionsHandler().checkPermissions();
ess.getCommandHandler().addPlugin(event.getPlugin()); 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.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.getPermissionsHandler().checkPermissions();
ess.getCommandHandler().removePlugin(event.getPlugin()); ess.getCommandHandler().removePlugin(event.getPlugin());
// Check to see if the plugin thats being disabled is the one we are using // 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."); ess.getLogger().log(Level.INFO, "Payment method was disabled. No longer accepting payments.");
} }
} }