Fixed issue with tokens not working.

This commit is contained in:
Brianna 2019-10-11 13:24:52 -04:00
parent 06e75fb064
commit e4ac71e8ff
3 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ public class EpicHeads extends SongodaPlugin {
private HeadManager headManager;
private PlayerManager playerManager;
private CommandManager commandManager;
PluginHook itemEconomyHook = PluginHook.addHook(Economy.class, "EpicHeads", com.songoda.epicheads.economy.ItemEconomy.class);
private PluginHook itemEconomyHook;
private Storage storage;
@ -55,6 +55,7 @@ public class EpicHeads extends SongodaPlugin {
@Override
public void onPluginLoad() {
INSTANCE = this;
this.itemEconomyHook = PluginHook.addHook(Economy.class, "EpicHeads", com.songoda.epicheads.utils.ItemEconomy.class);
}
@Override

View File

@ -49,7 +49,7 @@ public class Settings {
public static final ConfigSetting ECONOMY_PLUGIN = new ConfigSetting(config, "Economy.Economy", EconomyManager.getEconomy() == null ? "Vault" : EconomyManager.getEconomy().getName(),
"Which economy plugin should be used?",
"Supported plugins you have installed: \"" + EconomyManager.getManager().getRegisteredPlugins().stream().collect(Collectors.joining("\", \"")) + "\".");
"Supported plugins you have installed: \"" + EconomyManager.getManager().getRegisteredPlugins().stream().filter(p -> !p.equals("EpicHeads")).collect(Collectors.joining("\", \"")) + "\", \"Item\".");
public static final ConfigSetting HEAD_COST = new ConfigSetting(config, "Economy.Head Cost", 24.99,
"The cost the of the head. If you wan't to use PlayerPoints",

View File

@ -1,7 +1,6 @@
package com.songoda.epicheads.economy;
package com.songoda.epicheads.utils;
import com.songoda.core.hooks.economies.Economy;
import com.songoda.epicheads.utils.Methods;
import org.bukkit.OfflinePlayer;
import org.bukkit.inventory.ItemStack;
@ -68,6 +67,6 @@ public class ItemEconomy extends Economy {
@Override
public boolean isEnabled() {
return false;
return true;
}
}