// Path: src/main/java/com/thundergemios10/survivalgames/util/EconomyManager.java
// public class EconomyManager {
// 
// 	private static EconomyManager instance = new EconomyManager();
// 	private Economy economy;
// 	private boolean enabled = false;
// 	private EconomyManager(){
// 		
// 	}
// 	
// 	public static EconomyManager getInstance(){
// 		return instance;
// 	}
// 	
// 	public void setup(){
// 		enabled = setupEconomy();
// 
// 
// 	}
// 	
// 	
//     private boolean setupEconomy()
//     {
//         RegisteredServiceProvider<Economy> economyProvider = Bukkit.getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
//         if (economyProvider != null) {
//             economy = economyProvider.getProvider();
//         }
// 
//         return (economy != null);
//     }
// 	
//     public Economy getEcon(){
//     	return economy;
//     }
//     
//     public boolean econPresent(){
//     	return enabled;
//     }
// 	
// }


import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import com.thundergemios10.survivalgames.util.EconomyManager;
package com.thundergemios10.survivalgames.hooks;



/**
 * 
 * 
 * something wrote by pogo.
 *
 */
public class EconHook implements HookBase {

	public void executehook(String player, String[] s2) {
// Path: src/main/java/com/thundergemios10/survivalgames/util/EconomyManager.java
// public class EconomyManager {
// 
// 	private static EconomyManager instance = new EconomyManager();
// 	private Economy economy;
// 	private boolean enabled = false;
// 	private EconomyManager(){
// 		
// 	}
// 	
// 	public static EconomyManager getInstance(){
// 		return instance;
// 	}
// 	
// 	public void setup(){
// 		enabled = setupEconomy();
// 
// 
// 	}
// 	
// 	
//     private boolean setupEconomy()
//     {
//         RegisteredServiceProvider<Economy> economyProvider = Bukkit.getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
//         if (economyProvider != null) {
//             economy = economyProvider.getProvider();
//         }
// 
//         return (economy != null);
//     }
// 	
//     public Economy getEcon(){
//     	return economy;
//     }
//     
//     public boolean econPresent(){
//     	return enabled;
//     }
// 	
// }


// Path: src/main/java/com/thundergemios10/survivalgames/hooks/EconHook.java
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import com.thundergemios10.survivalgames.util.EconomyManager;

package com.thundergemios10.survivalgames.hooks;



/**
 * 
 * 
 * something wrote by pogo.
 *
 */
public class EconHook implements HookBase {

	public void executehook(String player, String[] s2) {
		if(EconomyManager.getInstance().econPresent()){