check the register package before attempting to hook.

This commit is contained in:
Sleaker 2012-01-16 08:30:30 -08:00
parent edf4c1fefb
commit d45236fe86
2 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ public class Vault extends JavaPlugin {
@Override
public void onPluginEnable(PluginEnableEvent event) {
if (event.getPlugin().getDescription().getName().equals("Register")) {
if (event.getPlugin().getDescription().getName().equals("Register") && packageExists(new String[] {"com.nijikokun.register.payment.Methods"})) {
if (!Methods.hasMethod()) {
try {
Method m = Methods.class.getMethod("addMethod", Methods.class);

View File

@ -1,5 +1,5 @@
/**
* Copyright (C) 2011 Morgan Humes <morgan@lanaddict.com>
unle * Copyright (C) 2011 Morgan Humes <morgan@lanaddict.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License