mirror of
https://github.com/songoda/EpicHeads.git
synced 2024-11-25 20:16:14 +01:00
Fixed issue with tokens not working.
This commit is contained in:
parent
06e75fb064
commit
e4ac71e8ff
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user