public int getItem(final String message) {
	
		int id;
		
		try {
			
			try {
				
				try {
					id = Integer.parseInt(customMessages.getString(message));
				} catch (Exception e) {
					Material m = Material.getMaterial(customMessages.getString(message).toUpperCase());
					
					id = m != null ? m.getId() : -1;
				}
				
			} catch (final MissingResourceException ex) {
				try {
					id = Integer.parseInt(messages.getString(message));
				} catch (Exception e) {
					Material m = Material.getMaterial(messages.getString(message).toUpperCase());
					
					id = m != null ? m.getId() : -1;
				}
			}
			
		} catch (final MissingResourceException ex) {
			try {
				id = Integer.parseInt(defaultBundle.getString(message));
			} catch (Exception e) {
				
				Material m = Material.getMaterial(defaultBundle.getString(message).toUpperCase());
				
				id = m != null ? m.getId() : -1;
			}
		}
		
		return id;
		
	}