001package net.milkbowl.vault.economy;
002
003import org.bukkit.OfflinePlayer;
004
005@SuppressWarnings("deprecation")
006public abstract class AbstractEconomy implements Economy {
007
008        @Override
009        public boolean hasAccount(OfflinePlayer player) {
010                return hasAccount(player.getName());
011        }
012
013        @Override
014        public boolean hasAccount(OfflinePlayer player, String worldName) {
015                return hasAccount(player.getName(), worldName);
016        }
017
018        @Override
019        public double getBalance(OfflinePlayer player) {
020                return getBalance(player.getName());
021        }
022
023        @Override
024        public double getBalance(OfflinePlayer player, String world) {
025                return getBalance(player.getName(), world);
026        }
027
028        @Override
029        public boolean has(OfflinePlayer player, double amount) {
030                return has(player.getName(), amount);
031        }
032
033        @Override
034        public boolean has(OfflinePlayer player, String worldName, double amount) {
035                return has(player.getName(), worldName, amount);
036        }
037
038        @Override
039        public EconomyResponse withdrawPlayer(OfflinePlayer player, double amount) {
040                return withdrawPlayer(player.getName(), amount);
041        }
042
043        @Override
044        public EconomyResponse withdrawPlayer(OfflinePlayer player, String worldName, double amount) {
045                return withdrawPlayer(player.getName(), worldName, amount);
046        }
047
048        @Override
049        public EconomyResponse depositPlayer(OfflinePlayer player, double amount) {
050                return depositPlayer(player.getName(), amount);
051        }
052
053        @Override
054        public EconomyResponse depositPlayer(OfflinePlayer player, String worldName, double amount) {
055                return depositPlayer(player.getName(), worldName, amount);
056        }
057
058        @Override
059        public EconomyResponse createBank(String name, OfflinePlayer player) {
060                return createBank(name, player.getName());
061        }
062
063        @Override
064        public EconomyResponse isBankOwner(String name, OfflinePlayer player) {
065                return isBankOwner(name, player.getName());
066        }
067
068        @Override
069        public EconomyResponse isBankMember(String name, OfflinePlayer player) {
070                return isBankMember(name, player.getName());
071        }
072
073        @Override
074        public boolean createPlayerAccount(OfflinePlayer player) {
075                return createPlayerAccount(player.getName());
076        }
077
078        @Override
079        public boolean createPlayerAccount(OfflinePlayer player, String worldName) {
080                return createPlayerAccount(player.getName(), worldName);
081        }
082
083}