@Override
    public void onEnable(){
    	instance = this;
    	TreasureManager thm = new TreasureManager();
    	
		try {
			TreasureManager.getInstance().loadPossibleTreasure();
		} catch (ClassNotFoundException | IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}

    	try {
			TreasureManager.getInstance().loadTreasureSpots();
		} catch (ClassNotFoundException | IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    	
    	this.getCommand("hunt").setExecutor(new CommandListener());
    	this.getServer().getPluginManager().registerEvents(new PlayerListener(), this);
    	this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new TreasureTask(), 0L, 20L*TASK_PERIOD);
    }