public static SlotMachine getFromLever(Block b) {
		Set<String> keys = null;
		try {
			keys = Global.config().getConfigurationSection("machines").getKeys(false);
		} catch(Exception e) { return null; }
		for(String k : keys) {
			String parentNode = "machines."+k;
			String leverNode = parentNode+".leverLoc";
			World world = Global.plugin.getServer().getWorld(Global.config().getString(parentNode+".world"));
			ArrayList<Integer> c = new ArrayList<Integer>();
			String[] xyz = new String[] {"x","y","z"};
			for(String s:xyz) c.add(Global.config().getInt(leverNode+"."+s));
			if(new Location(world,c.get(0),c.get(1),c.get(2)).equals(b.getLocation())) return new SlotMachine(k);
		}
		return null;
	}