mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-24 12:16:44 +01:00
Replace isPluginEnabled
check with null check.
Fixes vault economy interactions.
This commit is contained in:
parent
1590a4b6eb
commit
616aa0c338
@ -133,7 +133,7 @@ public class BukkitModule extends AbstractModule {
|
||||
@Provides
|
||||
@Singleton
|
||||
@NonNull EconHandler provideEconHandler() {
|
||||
if (!Settings.Enabled_Components.ECONOMY || !Bukkit.getPluginManager().isPluginEnabled("Vault")) {
|
||||
if (!Settings.Enabled_Components.ECONOMY || Bukkit.getPluginManager().getPlugin("Vault") == null) {
|
||||
return EconHandler.nullEconHandler();
|
||||
}
|
||||
// Guice eagerly initializes singletons, so we need to bring the laziness ourselves
|
||||
|
Loading…
Reference in New Issue
Block a user