File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
spigot/src/main/java/com/github/fernthedev/fernapi/server/spigot/pluginhandlers Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ public class VaultHandler {
22
22
* No need to manually call it.
23
23
*/
24
24
public void hook () {
25
+ if (getServer ().getPluginManager ().getPlugin ("Vault" ) == null ) {
26
+ return ;
27
+ }
28
+
25
29
if (!hooked ) {
26
- if (!setupEconomy ()) {
27
- return ;
28
- }
30
+ setupEconomy ();
29
31
setupPermissions ();
30
32
setupChat ();
31
33
hooked = true ;
@@ -42,9 +44,6 @@ public void hook() {
42
44
private static Chat chat = null ;
43
45
44
46
private boolean setupEconomy () {
45
- if (getServer ().getPluginManager ().getPlugin ("Vault" ) == null ) {
46
- return false ;
47
- }
48
47
RegisteredServiceProvider <Economy > rsp = getServer ().getServicesManager ().getRegistration (Economy .class );
49
48
if (rsp == null ) {
50
49
return false ;
You can’t perform that action at this time.
0 commit comments