mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-14 14:45:37 +01:00
check the register package before attempting to hook.
This commit is contained in:
parent
edf4c1fefb
commit
d45236fe86
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user