public final class VaultProxy extends Object implements InvocationHandler
InvocationHandler class for Vault's Economy class,
used to make it possible to observe changes in the Economy status
without modifying the original class| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object proxy,
Method m,
Object[] args) |
static void |
proxyVault()
Proxies the Vault
Economy class and replaces it with a
VaultProxy instance to handle method invocation, allowing
CEconomy objects to be notified upon money updates |
static <T extends CEconomy> |
register(T econ)
|
public Object invoke(Object proxy, Method m, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic static void proxyVault()
Economy class and replaces it with a
VaultProxy instance to handle method invocation, allowing
CEconomy objects to be notified upon money updatesCopyright © 2015. All rights reserved.