public boolean hasGodmode(xAuthPlayer player, DamageCause cause) {
		int godmodeLength = plugin.getConfig().getInt("session.godmode-length");
		Timestamp loginTime = player.getLoginTime();
		if (godmodeLength < 1 || loginTime == null || cause == DamageCause.FIRE_TICK || cause == DamageCause.DROWNING)
			return false;

		Timestamp expireTime = new Timestamp(loginTime.getTime() + (godmodeLength * 1000));
		return expireTime.compareTo(new Timestamp(System.currentTimeMillis())) > 0;
	}